i2c: qrd7627a: set i2c1 gpios to minimum strength

Rapid GPIO current change cause glitches on i2c lines.
it sets i2c GPIOs drive strength to 2ma.

Change-Id: I3d789c21095ca32e0e864eb334519be9c7b8f454
CRs-Fixed: 429515
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
slim_msm: Reading the smaller length messages properly

If the smaller length messages(<= 4 Bytes) like REPORT_ABSENT
are received over slimbus, the master driver is reading the
excessive length than required. Due to that the next messages
over slimbus are getting corrupted. This patch fixes this issue
and also handles the REPORT_ABSENT message sent by the third party
slimbus client devices.

CRs-Fixed: 431529
Change-Id: I7b3c07a94603482a6a9a7645ade70228144703bc
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
arm/dt: msm9625: Use async_irq to receive wake-up events in LPM

Enable support for async_irq which is used by HSIC controller to notify
wakeup events e.g. remote wakeup interrupt via a separate interrupt line.
This is required to support HSIC remote wakeup when PHY is suspended.

Change-Id: I63e08fb117107f024efd7c20c85f78c1dc972cd6
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
ASoC: wcd9320: Remove MICBIAS CAPLESS Switches

External bypass capacitor mode on each micbias is decided at board
design time.  There is no reason to expose mixer control to change
mode. Remove the mixer controls to prevent unintentional wrong setting
from user-space.

Change-Id: I8b82b1872730a3a95bc5dab494f4ce1ef7726662
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
arm/dt: 8226: Add Bus voting from USB

On recent platform it is required to vote for PNOC bus scaling
from peripheral. If bus clock gating is enabled and with absent
of bus voting from peripheral or not having bus clock at required
frequency, peripheral may not work as expected. Hence add PNOC
Bus voting from USB.

Change-Id: If676b692b12a364caa59347e24d3c5bad7c28d7a
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
power: pm8921-charger: don't reject all the chg current requests

The driver currently rejects any changes to the USB charge current if
no other source of power is present. This causes issues because if a
pc usb cable which supplies 500mA  is connected while the PMIC was
drawing 1500mA, it will continue to draw 1500mA from it causing charger
collapse.

The reason why the rejects were put in place were because if we are
running from USB as the source, vbus_draw() could be called with 0mA.
This would cause brownouts.

So only reject setting the current to 0mA in case another source is not
present.

Change-Id: I55a829db369bf60de2ba86a522480dacddc02186
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
ASoc: msm: State correction for compressed driver

Do not update the pending buffer flag on a driver underrun.
This causes a valid drain call to be rejected if the underrun
happens immediately after an EOS buffer has been given to the DSP
following a flush

Change-Id: Iff5b3896a192154cafc608261344983bb94508f1
CRs-Fixed: 457028
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
msm: board-8960:  Add chip id support for WRSG 1.1

To support 8960Pro HW version 1.0 & 1.1

Change-Id: I503dd5e52271d4a8b422cc817c59efe289011e4f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
msm: remote_spinlock: configure ldrex implementation via dt

Add DT support to select and configure the ldrex remote spinlock
implementation.

Change-Id: Ie9c72e529833a678467236f0ec4fe9b029e8f8f7
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
arm/dt: msm8974: add ipc-spinlock entry

Add the ipc-spinlock entry to facilitate locking between apps and non-apps
processors.

Note that on v1 the dedicated spinlock hardware is defective, so use the
ldrex implementation as a workaround.

Change-Id: I126114c572530a62f4a487c9a012976ca8266d25
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
msm: iommu: add missing include

irqreturn_t is defined in irqreturn.h. Include irqreturn.h in
iommu_perfmon.h so that iommu_perfmon.h's users don't have to include
it themselves.

Change-Id: I57b7bb3dd8cb823c302d8938b9c0304b10aa367b
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
ASoC: msm: Modify platform device name for Multimedia1

Modify the Platform name for Multimedia1 session in
machine driver for MDM9x25. Mutlimedia sessions are
assigned with id in device tree. The platform name
in machine driver should match device id.

Change-Id: I57e95e5cf95b2459ec09a51572c1b7ec2ff73a44
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
arm/dt: mdm9625: Add device id for Multimedia session

Multimedia session is used for playback and capture.
Multimedia session 1 is available on MDM. The device
id was added to assign specific session for low latency
playback and capture support which is not supported on
MDM platforms.

Change-Id: Ibc66b3fa8bf38e7c8fdea9fe207102e7abc1f5b8
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
USB: echi-msm2: Use clock apis for XO voting if possible

Use the clock APIs instead of the msm_xo APIs to vote on CXO
on platforms where it is supported. Use msm specific APIs for
XO voting on platforms where clock APIs usage is not yet
supported.

Change-Id: I3a26ddde1ccabfc3df26325097acee8fb3f29985
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm: clock-8974: clock support for ehci-msm2 driver for XO

Add required clock mapping for echi-msm2 driver to be used
for XO voting.

Change-Id: Ica9882d8f6ae1050c150779c278703d691c0012d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm: camera: prevent mutex lock in interrupt context.

This change removes the unused subdev ioctls that are resulting
in a mutex being locked in interrupt context.

Change-Id: I7e6d8148dcf786a07cd7d94e0eb420914f95609f
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
msm: camera: fix bug in camera msm_vb2 implementation

Upon every buf done, we should set the msm_vb2 buffer's in free_q
field to zero, like we do for every put buf. This is in consistence
with the design and ensures proper buffer circulation.

Change-Id: I484d400b55d57afa957ef90ce4b303cffeb74d5b
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
drivers: dma-contiguous: add initialization from device tree

Add device tree support for contiguous memory regions defined in device
tree. Initialization is done in 2 steps. First, the contiguous memory is
reserved, what happens very early, when only flattened device tree is
available. Then on device initialization the corresponding cma regions are
assigned to device structures.

Change-Id: Ic242499b64875ee57a346d7cbc8a34ebd64e68d2
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
arm/dt: msm-pm8226: Add support for power key

Add support for power on key through qpnp-power-on
driver.

Change-Id: If449254fd437bc191f28beaafa1cb707791e74e5
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
configs: msm8610_defconfig: Enable power key

Enable power key with qpnp-power-on driver.

Change-Id: Ib77b3da8b58487114dfc92dba5d7fb594c546ef2
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>