defconfig: 8084: enable dumping l1 and l2 caches

Enable support to dump L1 and L2 caches allowing cache analysis.
In case of kernel panic this will allow caches to be dumped before
these are flushed.

Change-Id: Ied166afc5bb6898eb0a331d170bb05ffc26318be
Signed-off-by: Aparna Das <adas@codeaurora.org>
bluetooth: update bluetooth-power platform data

Update bluetooth power driver to support both device tree and
board specific platform data to power on bluetooth chipset.

Current driver supports only gpio data from the device node.
Now the driver first checks for device tree node and if it
does not exist then checks for the platform data from the
board file.

Updated the platform data for the driver to provide all the
required vregs and gpio data to power on the bluetooth
chipset.

Change-Id: Ie71115ad7173fc527e46b334a8b548762b40aa46
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
ARM: dts: msm: Add bluetooth device node for apq8084

Add bluetooth device node to enable bluetooth chipset power

Change-Id: Ifb475cd3c542c5be059a4a6e13c071794fee4866
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
msm: kgsl: keep usermode context flags in kgsl_context

Store flags from userspace context creation in kgsl_context.flags,
and move all internal flags to adreno_context.priv.

Change-Id: I3c73ebee4092abf5864238319c214c4d977bdaad
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
ARM: dts: msm: Add the external capacitor setting for msm8610

Micbias used for audio recording can have on-board external bypass
capacitor. Add these setting for the CDP and MTP platforms for 8610
since these platforms have a external bypass capacitor on the micbias.

CRs-fixed: 539445
Change-Id: Icfd38e853e6e97f37cc1ef8e6aa65612d83b18db
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
ASoC: msm8x10-wcd: Pull TX2 to micbias whenever micbias is enabled

It is noticed that the headset mic has a buzz whenever micbias is
enabled. To reduce this buzz, always pull up the TX2 (headset)
microphone front end to micbias.

CRs-fixed: 526901
Change-Id: Id007a4c34c68aea0d0e01743d3e7aa8ca09fd5f7
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
power: qpnp-charger: add charger OVP status monitor

Enable coarse-det-usb irq for charger OVP monitor. When insert a
high voltage charger, coarse-det-usb irq trigger, after wait for
usb valid debounce time, check the OVP condition, and report usb
health state; When an OVP happened in the process of charging, a
falling usbin valid_irq trigger, check OVP condition in usb plug
out condition, and report the usb health state.

Userspace can use the charger health state change to pop up
warning message when a charger, which exceeds the OVP threshold,
is connected.

Change-Id: Idedcdd7084aa24505675cf016d869444a89ca46c
Signed-off-by: Wu Fenglin <fenglinw@codeaurora.org>
ARM: dts: msm: enable ovp monitor for 8226 qrd

Enable ovp status monitor for high voltage charger.

Change-Id: I95f33dfa8bffc69d2878089d368b03477f8c054d
Signed-off-by: Wu Fenglin <fenglinw@codeaurora.org>
Revert "ARM: dts: msm: Camera bring up for MSMSAMARIUM"

This reverts commit d1ab8bd064724807479b97619126186427ec7edf.
This commit was rebased/merged incorrect regarding the property
board-id. Reverted.

Change-Id: I9fc6771e66375276d0582b012b3e26cf52464335
Signed-off-by: Xu Han <hanxu@codeaurora.org>
ARM: dts: msm: Camera bring up for MSMSAMARIUM

Added dtsi entries for MSMSAMARIUM target.
Supported camera sensor imx132 and imx135.

Change-Id: I4835c39c4f66911f0c0152cb1b3c669fd68c8359
Signed-off-by: Xu Han <hanxu@codeaurora.org>
ARM: dts: msm: config SPI on BLSP1 QUP1 for 8092

Configure and enable the SPI controller at BLSP1 QUP1
for the 8092 chipset.

Change-Id: Ic0977ca91fcd3d60a95c401ecb38ff9e3d301c76
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
ARM: dts: msm: Config SPI on BLSP1 QUP1 for apq8084

Configure SPI device on BLSP1 QUP1 and sets its clocks and
GPIOs such that it may be used for loopback testing.

Change-Id: I19ec0832b2dfe2db1cafdfc130e0f68561c84784
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
defconfig: apq8084: Enable spi driver

Include the spi_qsd spi driver for apq8084 chipset.

Change-Id: I40ffda69764532e8d1bf2f804d1d411d7346cad8
Signed-off-by: Gilad Avidov <gavidov@codeaurora.org>
pinctrl: msm: Add error checking for node before accessing it

Every pintype supported may not be added in the device tree.
This can cause certain pintype nodes to be null. Check for this
before accessing the node.

Change-Id: I22891b0e022fa10d11b70f9d8d04b46d660e08c0
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
input: touchpanel: fix security issues in GT915 driver

There are multiple buffer overflow and input validation issues
in Goodix gt915 driver, fix these issues by adding data length
check and change file system node mode.

CRs-Fixed: 526101
Change-Id: I5173fc1ca021fd45c939c7c8a4f460651330de5b
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
ARM: dts: msm: Modify slimbus device properties for samarium

Program slimbus device address correctly in device-tree, and
device enumeration address product code field for apps side
channel setup.

Change-Id: I998a46a1f9c7554ea22ef6a98fa832fa2568d562
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
usb: msm_otg: Remove sleep waiting loop from the ci13xxx_wakeup function

When USB core exits from low power state in BAM to BAM mode, the
ci13xxx_wakeup function gets called from an atomic context and therefore
the usleep() call fails and an error message is returned. The fix is to
remove the usleep() call when the CI13XXX driver is used.

Change-Id: I102828523ed91dd765eb2e672bc33c9e5ce33e03
Signed-off-by: Danny Segal <dsegal@codeaurora.org>
input: touchscreen: Use proper conventional functions for debug

Replace non-standard debug function with the conventional
functions in Goodix driver. And remove unnecessary debug
function used in Goodix driver.

Change-Id: Ia89d225333c1309710aab67b9c406784567e3050
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
usb: XHCI: Add support to disable selective suspend

Out of band remote wakeup cannot be used when selective suspend
is enabled as hub driver can resume/suspend the port. Add
support to disable selective suspend on platforms which
does not support usual in-band remote wakeup.

Change-Id: I1bb699c94aed8f61683cc86ff801b50b69872930
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
msm_serial_hs: fix compilation warning

Add proper typecasting for the physical address type.

Change-Id: Ibf46360c31f3475123e2fe35b4ae89d8afe82abf
Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>