ARM: dts: msm: Correct ngpios DT entry for MSMSAMARIUM

Fixed MSMSAMARIUM msmgpio DT node, which had an incorrect value
of 145 in its ngpios field

Change-Id: I8e06208c1d2482a02b1644e5c253917455fbcf62
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
mmc: core: disable runtime PM for sdio cards

This patch disables runtime PM for sdio cards because
the runtime PM is managed by the respective SDIO function
drivers.
The card device (if sdio card) is set as runtime active
however, the runtime PM is not enabled for the same.
The runtime PM framework ensures that a device's
parents' cannot be suspended till all of its children
are suspended.

Change-Id: Ie0778d96f91738fc14a0dc05a3430c1f382ef13c
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
mmc: sdhci-msm: add MMC_PM_KEEP_POWER flag

This flag ensures that the power to the sdio card is not
cut-off. That way this can wake-up the device when required
using asynchronous interrupt mechanism.

Change-Id: Ic91bfdc93e117c5e627360a4d0ef80f661aa1b60
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
mmc: sdhci-msm: configure regulators only if defined in dts

This patch adds support to configure regulators only if
it is defined in dts files. However, it doesn't return an
error otherwise.

Change-Id: Iac2284b2df3b3d8af623da0f17697694994b34b8
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
cpufreq: ondemand: Boost CPU frequency only for touch input

Originally CPU frequency were boosted for any input event.
In some case, sensor sends a lot of input event, which
keep CPU in high frequency.  CPU frequency only need to
be boosted when real user interaction happens.

Change-Id: Ia3ad755b98d8363a17729926610b5dd6f0075288
CR-Fixed: 507519
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
msm: gpio: Pull up interrupt pins for qrd8610

Many interrupt pins in QRD8610 need be pulled up internally while
not use external pull up.

Change-Id: I290677945b90ac0cd2125657b5b3b77d93343084
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
ASoC: msm: qdsp6v2: Fix deadlock due to mutex unlock

Mutex is not unlocked in one of the failure case
in sound model buffer allocation function. This
causes deadlock if the failure condition occurs.
This change handles the mutex unlock correctly in
failure case.

Change-Id: I24b52c8db329d8b5fdd00b06a280b08a286907cc
Signed-off-by: Venkat Sudhir <vsudhir@codeaurora.org>
input: sensor: add power control in sensor enable sysfs for mpu3050

Add the sensor power management in the enable sysfs interface,
through which the HAL layer could enable/disable the sensor.

Change-Id: I68d77a5085e2d80deedb273f0ff1e0d5664ba71c
Signed-off-by: Xiaocheng Li <lix@codeaurora.org>
ARM: dts: msm: Use PMA8084 PMIC devices on msmsamarium

Include the msm-pma8084.dtsi PMIC file inside of the
msmsamarium.dtsi file so that PMA8084 devices are available for
use on msmsamarium targets.

Change-Id: I6c3820128ca9908a4c0a7c6217b0f054a1d01185
Signed-off-by: David Collins <collinsd@codeaurora.org>
ARM: dts: msm: Add regulator device constraints and labels for msmsamarium

Utilize the QPNP regulator devices on msmsamarium targets.  Add
voltage constraints and supply chain mapping via a new target
specific device tree include file.

Also add a stub-regulator device to support voltage corner
requests for VDD_CX (PMA8084 S2).

Change-Id: I329d12cc92fe12fa74f928fb2b0dbef35281bb00
Signed-off-by: David Collins <collinsd@codeaurora.org>
arm/dt: 8092: Add and enable VCAP IOMMU node in device tree

Add VCAP IOMMU device tree node for 8092 target.
Enable VCAP on mpq8092 so that the IOMMU can be
tested on simulator platform.

Change-Id: Ied95ecb5134076b268dd8df2d4fa0019aa7c5323
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
msm: clock-8092: Add dummy clocks for VCAP IOMMU

This will allow testing of VCAP IOMMU on mpq8092
simulator platform.

These are dummy clocks and when the actual driver comes up
we would be required to map them to physical clocks
vcap_ahb_clk, vcap_axi_clk, vcap_vp_clk_src.

Change-Id: I82095612441017ecf19160e4dc71907b23cff3a5
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
msm: ipc: Initialize unused elements of control message to 0

Initialize the entire control message to 0, so that unused elements of
a control message are initialized to 0. This will prevent any uninitialized
elements from leaking information to the remote subsystems.

Change-Id: I910f3956e8f282e614216c45f7af92d741d887f8
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
msm: qpnp-revid: Add names for various new PMICs

Add names for these PMICs according to the mapping:

Subtype    Name
 0x06     PMA8084
 0x07     PMI8962
 0x08     PMD9635

Change-Id: I536339aecc1bd95301cf5a28bad34b4727bee932
Signed-off-by: David Collins <collinsd@codeaurora.org>
wcnss:  Add WMAC registers to register dump list

When a WDI timeout or Watchdog bite happens at WCNSS, certain WCNSS
registers are logged for debug purpose. Add WLAN domain registers
TXP PHY aborts and MCU WLAN bridge error timeout registers to this
list. This is helpful for debugging the A2XB split timeout issues.

Change-Id: I13dd21b35de784f2bab200c1ae0dd4f4c10ebad0
CRs-Fixed: 515142
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
ARM: dts: msm: use correct sensor device tree for msm8226 QRD-EVT

 wrong sensor device tree file was included
 in board device tree file. Correct sensor
 device tree file is included in "msm8226-qrd.dtsi"

Change-Id: I799e9a112512950d69c4a35a106a80b204102b8b
Signed-off-by: Georgi Hristov <ghristov@codeaurora.org>
ARM: dts: msm: use correct sensor device tree for msm8926 QRD

 wrong sensor device tree file was included
 in board device tree file. Correct sensor
 device tree file is included in "msm8226-qrd.dtsi"

Change-Id: I8aeeddf19d3e76d105abba0670d64a2f5ee89198
Signed-off-by: Georgi Hristov <ghristov@codeaurora.org>
mm-audio: aud_acdb_util: Fix ADM custom topology

When AANC was added an enum was changed that affected ADM
custom topology and TX audproc vol cal. If ADM custom
topology was used the memmap handle for TX audproc volume
would be overwritten. This fixes that logic.

Change-Id: I8c0a13d0a3c0359537508b7ca9a34faf8cd267b4
CRs-fixed: 515406
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
msm: mdss: Do not unstage pipe when kickoff is issued without buffer

When a kickoff on a layer is issued but the staged pipe does not
have a buffer queued, a warning can be issued instead of unstaging
the layer. This will remove the need to set the pipe again and the
user application is responsible for the pipe management.

Change-Id: I6f0c7fcf329d41a5b2c79f97214edaaabb88d2d7
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
ARM: dts: Add support for apq8074v2.2 hardware variants

Previously, apq8074v2.2 booted using a configuration inherited
from msm8974-v2.0-1.dtsi. Inherit settings from msm8974-v2.2.dtsi
instead.

Change-Id: I257e77ef0983a011ad3d9249a6c22fb32c15b0b7
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>