ASoC: msm8960: Change boot sequence of msm-pcm-hostless platform driver.

The driver sound/soc/msm/msm-pcm-hostless.c is registered very late
in the sequence and hence the SOC framework keeps polling repeatedly
for it adding to latencies.

CRs-fixed: 428455
Change-Id: I973cc77e5f41a1ce32c2c74a1055efaadbae6dab
Signed-off-by: Simmi Pateriya <simmip@codeaurora.org>
usb: smd: Fix RTS bit clear on disconnection

RTS bit on smd control channel is cleared upon
disconnection and is not raised afterwards which
can cause DSM pool exhaustion on modem side.
This fix prevents RTS bit clearing on disconnection.

Change-Id: I1eb5fed5d8b1afd23a6b2bb36a59a4399858581f
CRs-Fixed: 441354
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
msm: kgsl: Increase IDLE_TIMEOUT for 2D core to 20secs

Increasing the hang detection time for 2D core from
10 secs to 20 secs to avoid False GPU Hangs.
Some c2d test cases are taking more than 10 secs
to process which results in a False GPU Hang.

Change-Id: Ice5e4b719adb44cd13fb8164bafedce1049416f7
CRs-Fixed: 454439
Signed-off-by: Vikram Orre <vorre@codeaurora.org>
usb: audio: Fixed alternate interface request

To pass USBCV chapter 9 tests, alt interface request
must return the last alt interface number set by host.
get_alt function now returns the correct alternate
interface number.

Change-Id: I0d0f7a0c9a9c616dd31395372e7c2bc736e5135d
CRs-Fixed: 436836
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
usb: audio: Fixed double scheduling of playback_work issue

If audio function recevied set_alt requests at a specified
order an issue would happen when the same playback buffer
would be scheduled for playback twice and that would lead
to a crash. This fix prevents this issue by insuring no
buffer is scheduled more than once.

Change-Id: If2a0a7262e6861c084173b9aa956abe840fe3e20
CRs-Fixed: 436836
Signed-off-by: Bar Weiner <bweiner@codeaurora.org>
msm: 8974: Update priorities of System NoC masters

This patch changes the priority settings for System NoC masters
based on the latest recommendations from systems' team.

Change-Id: I9af571f8fb8e496b138bcb0552dbfc30adf4a4c6
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
msm_fb: hdmi: Resolution modes on HDMI

Add a new header file that lists all supported
HDMI resolution modes and the associated timing
information.

Change-Id: I971422ddb97e3b219cc682032eb67212b434daab
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
msm: clock-9625: Add inactivity timer clocks support for BAM

BAM inactivity timers require the inactivity timer clocks to be on.
Add these clocks for driver to use.

Change-Id: Ic9efc171389dcbd14949cba63d2c478d4aab4295
Signed-off-by: Tianyi Gou <tgou@codeaurora.org>
ASoC: wcd9304: Enhance OCP reporting logic

CODEC has over current protection(OCP) finite state
machine for both left and right headphone while CODEC
driver tries to delay reporting of OCP event after
CODEC reporting OCP two times. Current CODEC driver
implementation results in unlocking one of headphone
power amplifier when OCP reported on both headphone.
Change the behavior to report OCP event for a give
headphone immediately if OCP already occurs on opposite
headphone.

Change-Id: I49d062f7c7f1a99390e82660c8f3e538a0a3cd56
Signed-off-by: Patrick Lai <plai@codeaurora.org>
ASoC: Add AANC ACDB IOCTL support

Add AUDIO_SET_AANC_CAL ioctl to store the AANC calibration information
from ACDB into the kernel.

Change-Id: I5dd9019c3d8cf11c4ade2b8e59a5336929d4f035
Signed-off-by: Damir Didjusto <damird@codeaurora.org>
msm: net: ecm: dynamic debug support


This feature will allow collecting ecm_ipa
logs without the need to rebuild
the images with ECM_IPA_DEBUG_ON

Change-Id: Id170c270d6ba809f7c2d6d75cad9bc537a1bb759
Signed-off-by: Talel Atias <tatias@codeaurora.org>
msm: pcie: Specify PARF parameters in platform data.

In femto development platform (FDP) the PCIe lanes are much shorter
compared to APQ8064 CDP with PCIe adaptor. This board requires different
PARF SWING parameters.

Change-Id: I32b56997c4efab40b7f6d9ac75c0e695d6948664
Acked-by: Chemin Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
msm: clock: Fix clk_set_parent()

- Update the clk->parent field when the operation succeeds.
- Grab the prepare lock when changing the parent. This is necessary to
  avoid race conditions between clk_set_parent() and clk_prepare(),
  clk_unprepare() and clk_set_rate(). Luckily, as of now, only the measure
  clock supports clk_set_parent(). So, this is not a real issue in a
  production device. Each set_parent op still needs to deal with
  grabbing/releasing the enable lock at the right time.
- If a clock doesn't support clk_set_parent() return an error instead of
  silently failing.

Change-Id: I5fdd6a7bb44bb924dc9aabd7119a03520617e3d1
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
ASoC: msm: qdsp6v2: Change permissions of debugfs nodes to 664

CTS verification on debugfs paths due to world-writable should
be 664. Modify the permissions of the debug fs node to 664
accordingly.

Change-Id: I5aef2d5c69ce73fe766f2c69a99ae45bafbef971
CRs-Fixed: 454805
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
msm: vidc: Add SMMU support for Q6 HFI

Q6 SMMU memory is now managed through common
iommu api. This enables iommu related api
in Q6 HFI and uses common iommu api for
finding group info and domain.

Change-Id: I194e08ab1300cba9483196bcb2f7a459c170457c
Signed-off-by: Sachin Shah <sachins@codeaurora.org>
msm: acpuclock-8974: Update (decrease) L2 voltages for 8974v2

Hardware characterization has shown L2 voltages can be safely
lowered for power savings. Update the data accordingly.

Change-Id: Ic52ab01e2426a32e2208994dfa86f3de40c3f89e
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
ASoC: Avoid putting stream state to STOP when stream paused

When multiple Front-end are using the same Back-end, putting
the stream state for a Front-end to STOP will make the the Backend
stream to be released, when the front-end is paused. This will avoid
the Backend to be released (when another active front-end stream is
present).
Instead, put the stream state to PAUSED, which will keep the Back-end
ON.

Change-Id: Ic31bf90a09b605b91f6b9fe3c09361b1145581fb
CRs-fixed: 428825
Signed-off-by: Banajit Goswami <bgoswa@codeaurora.org>
msm: clock-8610: Remove most LPASS clocks

Control of most of the LPASS clocks has been handed
over to the Q6 processor in the LPASS subsystem.
Remove these clocks from the clock-8610 driver.

Change-Id: Ic902b386e69dfb336e6944db02620260c0c7c455
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-8610: Remove GPLL0 configuration code

GPLL0 is to be exclusively controlled by the RPM, and TZ
will eventually setup protection to prevent access to
masters other than the RPM. Remove all code that touches
GPLL0 configuration registers from the clock-8610 driver.

Change-Id: I99c91b27c68a97652a7016587637d9ffd0253c86
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
arm/dt: msm8974: Add a fixed regulator device to represent VPH_PWR supply

Add a fixed regulator device to represent the unregulated VPH_PWR
supply.  VPH_PWR corresponds to the voltage coming from the
battery and is present whenever the device is powered on.  This
regulator may be used on boards where a supply may optionally be
tied to VPH_PWR.

Change-Id: I7272887a6556a8b091d62f90e83dfeacc1dc14f5
Signed-off-by: David Collins <collinsd@codeaurora.org>