Revert "ASoC: wcd9310: Fix DMIC current leakage after disable"

Codec power rail has 0.3mA higher sleep current leakage.
This happens due to configuring digital mic clock pin
(DMIC0_CLK,DMIC1_CLK) to GPIO through the TLMM mux register.

This reverts commit 8a3b82c661020e915dfc1be3b77d222019e7da57.

CRs-Fixed: 529174.
Change-Id: I79dbc08d2ed7030245f9da454c20ae483c348f4c
Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
Revert "ASoC: wcd9310: Fix DMIC current leakage after disable"

Codec power rail has 0.3mA higher sleep current leakage.
This happens due to configuring digital mic clock pin
(DMIC0_CLK,DMIC1_CLK) to GPIO through the TLMM mux register.

This reverts commit 28959576b1fbdc18c4c972c1b8b744db73d81641.

Change-Id: I92ece13a012386978dcf2d4bbec8cbf0046baf93
CRs-Fixed: 529174
Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
Revert "ASoC: wcd9304: Fix DMIC current leakage after disable"

Codec power rail has 0.3mA higher sleep current leakage.
This happens due to configuring digital mic clock pin
(DMIC0_CLK,DMIC1_CLK) to GPIO through the TLMM mux register.

This reverts commit c28ec1d9d28fccf4b012ff7252688a588eed299f

Change-Id: If3c43de6805eef9549e6d08fe508a2463ceca1f0
CRs-Fixed: 529174
Signed-off-by: Satish Kamuju <skamuj@codeaurora.org>
ARM: dts: msmkrypton: Add qprng device tree data

Add QUALCOMM random number generator device tree data to dtsi file
by adding msm-rng device node with all the necessary parameters

Change-Id: Idf1aea8cadeffb453525b20f479d0d6171953e7f
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
USB: phy: msm: Add support for overriding SSPHY deemphasis setting

TX deemphasis value can be different from platform to platform.
This value has to be set to suitable value to pass USB3 complaince
test. Hence add support for overriding this deemphasis value from
device tree.

CRs-Fixed: 536912
Change-Id: Ic3c2213fc0d090407057525115eae1351ecc4668
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
arm/dts: 8974pro: Set deemphasis value to override default setting

driver is currently setting deemphasis value to 22 for all 8974
variants. This value needs to be set to 26 for USB3 complaince
tests passing for 8974 pro. Hence set deemphasis value to 26 in
device tree file.

CRs-Fixed: 536912
Change-Id: Ib14c4a213a435bf8c89810ce7a741d27950d1851
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
msm: camera: Add support for YUV422 formats

Adding support for YUV422 pixel formats for ISP output.
This formats will be only supported by the RDI dump, for sensor which
outputs this kind of formats.

Change-Id: I45db56c3efa69fb4f70a551fe33cec42190df987
Signed-off-by: Vladislav Hristov <vhrist@codeaurora.org>
msm: kgsl: Add CMA memory feature to support NOMMU for GPU

Reserves CMA memory for kgsl driver early during bootup and then
uses dma_alloc_coherent() to allocate physically contiguous memory
instead of using the MMU

Change-Id: Ica9b244fe9b9d8a902d670293a0bec2edf81bd5d
Signed-off-by: Shrenuj Bansal <shrenujb@codeaurora.org>
msm: vidc: Expose extra data header structure

The driver clients need this structure to know how to get
the extra data information coming from the driver.

Change-Id: I32074c1a5130fd5378ef77e34a5f39b0bd60ab95
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
msm: vidc: Fix wrong variable size for mpeg2_seqdisp_payload

The variable color_descp is not bool; it is defined by Venus
FW API as u32 like all other variables in this structure.

Change-Id: Icaef2292ded03f510f0ecada443c9c5217fc9d79
Signed-off-by: Jorge Solano Altamirano <jsolano@codeaurora.org>
build-all.py: Add support for mpq*_defconfig

mpq8092_defconfig does not match the existing msm pattern
because of not having its name started with msm prefix.
Compile it too.

Change-Id: I1b758e33fa550fdac539a18cc61a6a8348f61f71
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
mpq8092: msm-uart: Fix gpio config for uart

1. remove direction setting for UART gpio which
are configured in FUNC_2.
2. Correct the GPIO numbers for the UART used in RUMI
& CDP

Change-Id: I8feacf1e7103989af62772a0c1477df6d1711462
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
ARM: dts: msm: Increase register space to include all GPU registers

Increases the register space so we can read the GPU registers
past 0x10000 and dump those into the snapshot. Also fixes shader
memory size.

Change-Id: I2ed237d305a256824b9ce242773564d3624b83cb
Signed-off-by: Shrenuj Bansal <shrenujb@codeaurora.org>
ARM: msm: clock-krypton: Modify the qrng device name

Modify the QUALCOMM random number generator device name in the clock
tree, which is required by the driver during the clock enable.

Change-Id: I54ccae5b1dd4a0a317c03f3b2d506cc4cba42d26
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
diag: dci: Reduce dci table memory foot print

Diag driver uses a table of definite size to maintain information about
the DCI clients. This is allocated when the driver comes up. This memory
is relatively large and is allocated irrespective of the number of
dci clients. This patch changes the implementation from a table to a list.
This allocates a table entry for a client only when they register for DCI.

Change-Id: I7a22536a49c3e640e3e6d86c9731df02c8f04b58
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
ARM: dts: msm: use labels for UART devices in 8092

Use labels and alias node for the UART devices to have
common node across platforms. Remove uart1 in blsp2 as
its not used in sim platform.

Change-Id: Ibe800324da4f4fec0d5ebfa77e5e4e20790aa184
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Perf: Add L1 counters to tracepoints

Create a new tracepoint to get L1 PMU counter
information at every context switch. Counters
are captured only when the tracepoint is enabled
via perf or ftrace.

Change-Id: If05527b29e04c700170cfdf9f88d300b2f558ffa
Signed-off-by: Ashwin Chaugule <ashwinc@codeaurora.org>
Perf: Make per-process counters configurable

Add feature to enable/disable per-process tracecounters at run-time.

Change-Id: Id6a4c7a0ecd1f5add85464c6ed260860e15c4e3b
Signed-off-by: Sheetal Sahasrabudhe <sheetals@codeaurora.org>
ARM: dts: msm: Add nfc device for msm8226 cdp

Add nfc nci device to the device tree for msm8226 cdp and nfcc
is dependant on I2C BLSP1 QUP3. The data is represented in
device tree format and pass by the driver using of framework API.

Change-Id: Ife9fb7ff485e3a896ea64893b794838003d1efd7
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Bansidhar Gopalachari <bansid@codeaurora.org>
msm: actuator: fix to prevent untrusted pointer to lead DoS

fix to prevent untrusted userspace pointer in actuator kernel
driver to lead DoS

Change-Id: I1b64270deb494530d268539e7b420be5ec79b658
Signed-off-by: Vasko Kalanoski <vaskok@codeaurora.org>