RM: defconfig: msm8974: Add NFC for 8974 devices

Add NFC for msm8974 configuration

Change-Id: I24269b5fdad071ccc2a7a1918f6e9e6b6d00db51
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
ARM: dts: msm: add non wake up capable interrupts to bypass list for 8x10 v2

Add non wake up capable interrupts to bypass list for 8x10 v2.
Some of the interrupts are not capable of waking up the system
from LPM modes but these interrupts can prevent the system not
to enter into deep power states i.e XO and Vdd min when these
are not added to bypass list.

CRs-fixed: 584863
Change-Id: I35dce3a8e833b11940afa975e49db0f6dc731bdb
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
msm: thermal: Add support for emergency frequency mitigation

Add emergency frequency mitigation support to Kernel Thermal
Monitor. This feature enables KTM to mitigate the cpu's max
frequency when the temperature crosses the preset threshold.

CRs-Fixed: 538981
Change-Id: I756e82e577b19c18f32b3297aa97fa2942d8b77d
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
ARM: dts: msm: Enable emergency frequency mitigation for MSM8974

Specify the frequency mitigation threshold and the max frequency
to which KTM should mitigate the cpu. This mitigation is enabled
only for cpu 0, but can be extended to other cpu's by modifying
the cpu mask.

CRs-Fixed: 538981
Change-Id: I062d7a048961ffa77bfb52e19c78a9a31e9894e7
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
msm: thermal: Add IOCTL interface support to Kernel Thermal Monitor

Kernel Thermal Monitor exposes an IOCTL dev interface,
which can be used for user space cpu frequency
mitigation.

CRs-Fixed: 538981
Change-Id: Idb8b836970f7d5d029fea606aaa4f7958c982f68
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
ARM: dts: msm: add interrupts to bypass list

some of the interrupts are enabled by default and causing
system not to enter into XO when the target is idle. Add
non wakeup capable interrupts to bypass list to allow
target to enter into XO shutdown.

Change-Id: I7237a69bd2b87ab5101ffa6ad95e86aef2a93ad5
CRs-fixed: 575437
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
ARM: dts: msm: Add NFC device for 8226-qrd devices

Add nfc-nci device to the device tree for 8226-qrd devices.

Change-Id: I7876fa95d30e55e2c0d2cb8a2010b06dc9c472da
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
msm: reap unused audio files

Removing this file as it is not used in this branch.

Change-Id: Ibff0dbeca0cdae5447d3fd8857ffad296edfdd55
Signed-off-by: anish kumar <kanish@codeaurora.org>
ARM: dts: msm: Add NFC device for 8974 bc

Add nfc nci device to the device tree for 8974 bc

Change-Id: I6caf8c6d6a7354f7b0b75557f8f51ea350ad205f
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
Revert "ARM: dts: msm: Add NFC device for 8974 bc"

Partially revert commit bc2bf21d5ae217b0735443d23686391da940e5a9.

Change-Id: Ia716ca499cd5538862b2aa5332e4e9c50127dfba
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
radio: iris: Avoid memory leak and NULL pointer dereferencing

 - Avoid memory leak by freeing allocated memory
 - Do not derefer NULL pointer

CRs-Fixed: 537955
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
Change-Id: I7624d73e5c25233e9d03c67e4204c611b9a8fff6
radio: iris: Avoid NULL pointer dereferencing

Before dereferencing a pointer check for NULL
pointer.

CRs-Fixed: 537890
Signed-off-by: Ayaz Ahmad <aahmad@codeaurora.org>
Change-Id: If010b89fd4f5930d944c9e327c51de4b40f33c3c
wcnss: Add support to configure the Wlan MAC addr

This change introduces a sysfs entry to allow userspace to
configure the wlan MAC addr and exports an API which allows
WLAN and other wireless technologies to query the wlan MAC
addr

Change-Id: I751b2cf2db1321926e8e16ef1baaa4fa3d8d06cf
CRs-Fixed: 583465
Signed-off-by:  <hkpatel@codeaurora.org>
ARM: dts: msm: Add NFC device for squab V2 devices

Add nfc nci device to the device tree for squab V2 devices

Change-Id: I809bef2086a950b848823fd4ab6261bd39261d7c
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
msm: mdss: Use MDP_SOLID_FILL to enable color on pipe

To enable constant color on a pipe, set MDP_SOLID_FILL in pipe
flag. This will do a solid fill on the pipe with the color
specified in bg_color.

CRs-Fixed:592032
Change-Id: I3201e2fa657a6fc6d0e7f51f8585366afc3d29a3
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
ARM: dts: msm: Add NFC device for 8974 fluid

Add nfc nci device to the device tree for 8974 fluid and nfcc is
dependant on i2c BLSP1 QUP6. The data is represented in
device tree format and pass by the driver using of framework API

Change-Id: Ib03a7dbb550729d1810f7a070a49c8e1a9619971
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Houston Hoffman <hhoffman@codeaurora.org>
msm: msm8974: Add NFC I2C GPIO mux for FLUID

Configure GPIO 29 and 30 for NFC I2C.

Change-Id: I5f3653b2cb49476b7c557b1ae9722634b45d045c
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Houston HOffman <hhoffman@codeaurora.org>
msm: clock-8974: Update lookup table for NFC clocks

I2C clock and BBCLK2 configuration needed to support QCA199x NFCC
on msm8974 fluid.

Change-Id: Ic7b4f89884e99fe6a984b0df852e69c424d6bb22
Acked-by: Umesh Jagga <ujagga@qti.qualcomm.com>
Signed-off-by: Houston HOffman <hhoffman@codeaurora.org>
wcnss: Sample WCNSS TOP AHB clock on WCNSS WDOG bite

Sample the wcss_top_ahb_clk and determine whether or not the clock freq
is zero when the issue occurs. This will help confirm the reason for
the system reset when Apps tries to access PMU registers for logging
purposes.

Change-Id: Ia4f34a38b7e8d237b9e5ae935d9ce339ca2d6ed1
Signed-off-by: Yue Ma <yuem@codeaurora.org>
msm: vidc: Send ABORT in FLUSH command from the Client

When session error is sent to the client, client issues FLUSH
and release buffers commands. But as instance state is INVALID,
these commands are never sent to the firmware, instead FLUSH
DONE and Release buffer done are sent back to client even
though firmware might be working on these buffers which may
result into page faults.
This change fixes the issue by sending ABORT command to the
firmware at the time when driver receives FLUSH command. Then
firmware will release all buffers, clean up session and send
ABORT_DONE back to the driver.

CRs-fixed: 592920
Change-Id: Ie4c79a312d2336c68b858f5f5e2a85331cf55f7b
Signed-off-by: Deepak Verma <dverma@codeaurora.org>