OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoinput: msg21xx_ts: update mstar driver to enable msg2138A
Mao Li [Mon, 11 Aug 2014 06:19:09 +0000 (14:19 +0800)]
input: msg21xx_ts: update mstar driver to enable msg2138A

Mstar reference driver is being cleaned up to be checkpatch
compliant. Add Kconfig and Makefile changes to enable Mstar
driver's compilation. And following new features are added to
the driver:
1. Pinctrl support
2. Threaded irq support
3. Release all touches in suspend
4. Protocol B compliance
5. Explicit suspend/resume function
6. Configure gpios in suspend/resume function
7. Add device tree parser function
8. Add dtsi support for gpio, regulator, I2C address, display coords

This patch is propagated from 3.18 kernel
'commit 091a01709e12 ("input: msg21xx_ts: update mstar
driver to enable msg2138A")'

Change-Id: Ic49a18de64ec210a0636405394ba7a8f52f336a9
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
[abinayap@codeaurora.org: Fix checkpatch errors for 4.4 kernel
- Block comments use a trailing */ on a separate line
- Comparisons should place the constant on the right side of the test
- struct of_device_id should normally be const
- DT compatible string vendor "mstar" appears un-documented]
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
8 years agoMerge "ASoC: wcd934x: Enable smart boost on WCD9340 codec"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:49 +0000 (21:39 -0700)]
Merge "ASoC: wcd934x: Enable smart boost on WCD9340 codec"

8 years agoMerge "icnss: pass fw version to wlan driver"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:48 +0000 (21:39 -0700)]
Merge "icnss: pass fw version to wlan driver"

8 years agoMerge "soc: qcom: pil: Add error codes to error logs"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:47 +0000 (21:39 -0700)]
Merge "soc: qcom: pil: Add error codes to error logs"

8 years agoMerge "msm: kgsl: Allocate global buffers through paged memory"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:46 +0000 (21:39 -0700)]
Merge "msm: kgsl: Allocate global buffers through paged memory"

8 years agoMerge "socinfo: Export API for getting SOC serial number"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:45 +0000 (21:39 -0700)]
Merge "socinfo: Export API for getting SOC serial number"

8 years agoMerge "ARM: dts: msm: Add dmic clock rate on ECPP path for 8996"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:44 +0000 (21:39 -0700)]
Merge "ARM: dts: msm: Add dmic clock rate on ECPP path for 8996"

8 years agoMerge "ASoC: msm8996: Add independent clock support on codec"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:43 +0000 (21:39 -0700)]
Merge "ASoC: msm8996: Add independent clock support on codec"

8 years agoMerge "mdss: display-port: add support to use common EDID parser"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:42 +0000 (21:39 -0700)]
Merge "mdss: display-port: add support to use common EDID parser"

8 years agoMerge "input: touchpanel: Goodix GT915 driver cleanup"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:41 +0000 (21:39 -0700)]
Merge "input: touchpanel: Goodix GT915 driver cleanup"

8 years agoMerge "input: touchscreen: reduce lpm current of avdd reg for ITE tech"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:40 +0000 (21:39 -0700)]
Merge "input: touchscreen: reduce lpm current of avdd reg for ITE tech"

8 years agoMerge "input: touchscreen: add delay after enabling regulators"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:40 +0000 (21:39 -0700)]
Merge "input: touchscreen: add delay after enabling regulators"

8 years agoMerge "ARM: dts: msm: Add battery data for QRD SKUK device"
Linux Build Service Account [Fri, 5 Aug 2016 04:39:39 +0000 (21:39 -0700)]
Merge "ARM: dts: msm: Add battery data for QRD SKUK device"

8 years agosoc: qcom: pil: Add error codes to error logs
Puja Gupta [Fri, 29 Jul 2016 22:27:27 +0000 (15:27 -0700)]
soc: qcom: pil: Add error codes to error logs

To help better understand error logs, print error codes along with error
logs.

CRs-Fixed: 1050153
Change-Id: Ic7fd560133d836ef15015ff0ebcdd3fdb13ff6cb
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
8 years agoASoC: wcd934x: Enable smart boost on WCD9340 codec
Sudheer Papothi [Tue, 2 Aug 2016 00:35:42 +0000 (06:05 +0530)]
ASoC: wcd934x: Enable smart boost on WCD9340 codec

During playback, enabling smart boost feature changes the threshold
of the playback signal based on the amplitude of the signal without
clipping the signal. Change enables smart boost on WCD9340 codec.

Change-Id: Ic4c5e3cc071898f376070b853112c5014d61272c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoARM: dts: msm: Add dmic clock rate on ECPP path for 8996
Sudheer Papothi [Thu, 19 May 2016 14:48:49 +0000 (20:18 +0530)]
ARM: dts: msm: Add dmic clock rate on ECPP path for 8996

DMIC clock on ECPP(Echo cancellation Ping-Pong) path can
run at 1.2MHz. Change configures DMIC clock rate for ECPP
path in codec device node.

CRs-fixed: 1022917
Change-Id: Ie7a0a5c57af608cdb42fac9f0f95fe427de8ea1d
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agoASoC: msm8996: Add independent clock support on codec
Sudheer Papothi [Thu, 12 May 2016 19:10:35 +0000 (00:40 +0530)]
ASoC: msm8996: Add independent clock support on codec

WCD9335 codec has single master clock supply widget for both
playback and recording paths. Adding separate clock supply
for playback and recording paths will help handle low power
audio recording usecases without affecting playback usecases.
Change is to enable separate clock supply widgets for playback
and recording paths.

CRs-fixed: 1022917
Change-Id: I3978d2c53f2b04104d9d279f8acad60326f9405c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agosocinfo: Export API for getting SOC serial number
Yuanyuan Liu [Thu, 28 Jul 2016 17:55:59 +0000 (10:55 -0700)]
socinfo: Export API for getting SOC serial number

Export API for getting SOC serial number so that other modules
can use it.

CRs-Fixed: 1050491
Change-Id: I24f735159a38dffdc4f44babacc4d758cd0a8365
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
8 years agoMerge "msm: mdss: Enable dynamic FPS support for msmcobalt"
Linux Build Service Account [Thu, 4 Aug 2016 15:22:41 +0000 (08:22 -0700)]
Merge "msm: mdss: Enable dynamic FPS support for msmcobalt"

8 years agoMerge "arm64: dma-mapping: don't clear dma ops on bypass detach"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:52 +0000 (21:12 -0700)]
Merge "arm64: dma-mapping: don't clear dma ops on bypass detach"

8 years agoMerge "Revert "arm64: dma-mapping: Attach IOMMUs as groups""
Linux Build Service Account [Thu, 4 Aug 2016 04:12:51 +0000 (21:12 -0700)]
Merge "Revert "arm64: dma-mapping: Attach IOMMUs as groups""

8 years agoMerge "ARM: dts: msm: Remove bogus stream ID from PCIe IOMMU"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:51 +0000 (21:12 -0700)]
Merge "ARM: dts: msm: Remove bogus stream ID from PCIe IOMMU"

8 years agoMerge "ARM: dts: msm: change to use SW AEAD and HMAC algorithm for msmcobalt"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:50 +0000 (21:12 -0700)]
Merge "ARM: dts: msm: change to use SW AEAD and HMAC algorithm for msmcobalt"

8 years agoMerge "soc: qcom: gladiator_erp_v2: initialize return value"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:49 +0000 (21:12 -0700)]
Merge "soc: qcom: gladiator_erp_v2: initialize return value"

8 years agoMerge "qcom-charger: qpnp-smb2: use values from hardware for default settings"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:48 +0000 (21:12 -0700)]
Merge "qcom-charger: qpnp-smb2: use values from hardware for default settings"

8 years agoMerge "Revert "drivers: mfd: Return EPROBE_DEFER during codec failure""
Linux Build Service Account [Thu, 4 Aug 2016 04:12:47 +0000 (21:12 -0700)]
Merge "Revert "drivers: mfd: Return EPROBE_DEFER during codec failure""

8 years agoMerge "leds: qpnp-flash-v2: add support to query battery parameters"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:46 +0000 (21:12 -0700)]
Merge "leds: qpnp-flash-v2: add support to query battery parameters"

8 years agoMerge "clk: msm: clock: Add the NO_RATE_CACHE flag to DP clocks on MSMCOBALT"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:45 +0000 (21:12 -0700)]
Merge "clk: msm: clock: Add the NO_RATE_CACHE flag to DP clocks on MSMCOBALT"

8 years agoMerge "soc: qcom: core_ctl: Fix possible null-pointer dereference"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:45 +0000 (21:12 -0700)]
Merge "soc: qcom: core_ctl: Fix possible null-pointer dereference"

8 years agoMerge "defconfig: arm64: msm: Re-enable qtaguid"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:44 +0000 (21:12 -0700)]
Merge "defconfig: arm64: msm: Re-enable qtaguid"

8 years agoMerge "ASoC: wcd9335: Add support to enable low power mode on codec"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:43 +0000 (21:12 -0700)]
Merge "ASoC: wcd9335: Add support to enable low power mode on codec"

8 years agoMerge "msm: mdss: add support for adaptive variable refresh feature"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:42 +0000 (21:12 -0700)]
Merge "msm: mdss: add support for adaptive variable refresh feature"

8 years agoMerge "msm: sde: Correct rotator irq handler to acknowledge irq once"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:41 +0000 (21:12 -0700)]
Merge "msm: sde: Correct rotator irq handler to acknowledge irq once"

8 years agoMerge "msm: gsi: do not register to inter ee irq"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:33 +0000 (21:12 -0700)]
Merge "msm: gsi: do not register to inter ee irq"

8 years agoMerge "msm: camera_v2: Fix a return code issue in smmu mapping"
Linux Build Service Account [Thu, 4 Aug 2016 04:12:32 +0000 (21:12 -0700)]
Merge "msm: camera_v2: Fix a return code issue in smmu mapping"

8 years agosoc: qcom: gladiator_erp_v2: initialize return value
Runmin Wang [Wed, 3 Aug 2016 20:57:47 +0000 (13:57 -0700)]
soc: qcom: gladiator_erp_v2: initialize return value

Initialize the return value before it is used in the driver to
make sure valid return value is returned.

CRs-Fixed: 1050136
Change-Id: I3e2c524ac87d57ae33cd0f28b9c62b2a39ee79ad
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
8 years agoclk: msm: clock: Add the NO_RATE_CACHE flag to DP clocks on MSMCOBALT
Deepak Katragadda [Wed, 3 Aug 2016 20:41:46 +0000 (13:41 -0700)]
clk: msm: clock: Add the NO_RATE_CACHE flag to DP clocks on MSMCOBALT

The set_rate requests from the display port clocks should always
make their way upto the DP PLL. Add the NO_RATE_CACHE flag to
clocks in that path in order to let this happen.

CRs-Fixed: 1050007
Change-Id: I6a848b04756b92f9b1149705176e8f4088b2a945
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agosoc: qcom: core_ctl: Fix possible null-pointer dereference
Olav Haugan [Wed, 3 Aug 2016 18:37:06 +0000 (11:37 -0700)]
soc: qcom: core_ctl: Fix possible null-pointer dereference

Ensure we don't try to call online/offline functions with a
null-pointer.

CRs-fixed: 1049957
Change-Id: I6fa8f9bde5d5fd0680b5c571ba3cc99bd1f508b1
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
8 years agodefconfig: arm64: msm: Re-enable qtaguid
Bryse Flowers [Wed, 6 Jul 2016 18:11:09 +0000 (11:11 -0700)]
defconfig: arm64: msm: Re-enable qtaguid

Re-enable QTAGUID so that bandwidth control is possible from
userspace now that stability issues have been resolved by
picking upstream commits.

Change-Id: If3b0be88f28da82a08dc4cc67006e8ee8ced5a72
CRs-Fixed: 1035969
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoleds: qpnp-flash-v2: add support to query battery parameters
Devesh Jhunjhunwala [Fri, 8 Jul 2016 01:09:08 +0000 (18:09 -0700)]
leds: qpnp-flash-v2: add support to query battery parameters

Register a notifier callback with the power_supply framework
to detect when the bms power_supply is available so that
it can be used to query the battery properties required from
the fuel gauge for the maximum current query algorithm.

CRs-Fixed: 1043718
Change-Id: Icd535025a2f888e188f89841f32ac5b822f9b20d
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoMerge "ASoC: wcd9335: don't check for HPHL and HPHR for mono headset"
Linux Build Service Account [Wed, 3 Aug 2016 17:53:37 +0000 (10:53 -0700)]
Merge "ASoC: wcd9335: don't check for HPHL and HPHR for mono headset"

8 years agoinput: touchpanel: Goodix GT915 driver cleanup
Bingzhe Cai [Tue, 16 Jul 2013 09:57:37 +0000 (17:57 +0800)]
input: touchpanel: Goodix GT915 driver cleanup

Code clean up that makes the driver more like a linux driver.
Add some error recovery to make sure driver will not crash when
error is occurs. Also have cleared the checkpatch errors on 4.4.

This patch is propagated from 3.4 kernel 'commit c2fcdcda743f
("input: touchpanel: Goodix GT915 driver cleanup")'

Change-Id: I3af425f5f0251ec576168f72a2059f85c3be4358
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
[abinayap@codeaurora.org: Fix checkpatch errors for 4.4 kernel
- check for sizeof(p_cfg_grp)/sizeof(p_cfg_grp[0]) that could
be ARRAY_SIZE(p_cfg_grp)
- check for sizeof(touch_key_array)/sizeof(touch_key_array[0])
that could be ARRAY_SIZE(touch_key_array)
- Comparisons should place the constant on the right side
of the test]
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
8 years agoMerge "qseecom: Change format specifier %p to %pK"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:55 +0000 (04:58 -0700)]
Merge "qseecom: Change format specifier %p to %pK"

8 years agoMerge "msm: mdss: hdmi: send info frame for HDR video streams"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:54 +0000 (04:58 -0700)]
Merge "msm: mdss: hdmi: send info frame for HDR video streams"

8 years agoMerge "input: touchscreen: Change touch driver suspend code flow for XO shutdown"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:50 +0000 (04:58 -0700)]
Merge "input: touchscreen: Change touch driver suspend code flow for XO shutdown"

8 years agoMerge "input: touchscreen: correct probe error path for ITE tech driver"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:50 +0000 (04:58 -0700)]
Merge "input: touchscreen: correct probe error path for ITE tech driver"

8 years agoMerge "ASoC: wcd-spi: SPI driver for WCD audio codecs"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:48 +0000 (04:58 -0700)]
Merge "ASoC: wcd-spi: SPI driver for WCD audio codecs"

8 years agoMerge "wcd_dsp_mgr: Add the WCD DSP manager driver"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:47 +0000 (04:58 -0700)]
Merge "wcd_dsp_mgr: Add the WCD DSP manager driver"

8 years agoMerge "msm: ipa: fix IPA driver processing context delete logic"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:46 +0000 (04:58 -0700)]
Merge "msm: ipa: fix IPA driver processing context delete logic"

8 years agoMerge "msm: ipa: disconnect sequence change for USB 2.0"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:45 +0000 (04:58 -0700)]
Merge "msm: ipa: disconnect sequence change for USB 2.0"

8 years agoMerge "serial: msm_serial_hs: Modify IPC Logging"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:39 +0000 (04:58 -0700)]
Merge "serial: msm_serial_hs: Modify IPC Logging"

8 years agoMerge "ARM: dts: msm: Remove TSENS QFPROM address and slope data"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:38 +0000 (04:58 -0700)]
Merge "ARM: dts: msm: Remove TSENS QFPROM address and slope data"

8 years agoMerge "thermal: tsens: Update TSENS property for reading efuse data"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:37 +0000 (04:58 -0700)]
Merge "thermal: tsens: Update TSENS property for reading efuse data"

8 years agoMerge "msm: ipa: fix multiple static analysis issues"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:36 +0000 (04:58 -0700)]
Merge "msm: ipa: fix multiple static analysis issues"

8 years agoMerge "power_supply: add CHARGER_TEMP and CHARGER_TEMP_MAX properties"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:35 +0000 (04:58 -0700)]
Merge "power_supply: add CHARGER_TEMP and CHARGER_TEMP_MAX properties"

8 years agoMerge "qcom-charger: qpnp-smb2: End charge cycle while battery is OV"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:34 +0000 (04:58 -0700)]
Merge "qcom-charger: qpnp-smb2: End charge cycle while battery is OV"

8 years agoMerge "ARM: dts: msm: Update frequency to MEM ACC level mappings for MSMCOBALT"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:33 +0000 (04:58 -0700)]
Merge "ARM: dts: msm: Update frequency to MEM ACC level mappings for MSMCOBALT"

8 years agoMerge "spmi: pmic-arb: correct support for up to 512 APIDs"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:32 +0000 (04:58 -0700)]
Merge "spmi: pmic-arb: correct support for up to 512 APIDs"

8 years agoMerge "usb: gadget: f_cdev: Fix NULL ptr dereference in usb_cser_notify"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:31 +0000 (04:58 -0700)]
Merge "usb: gadget: f_cdev: Fix NULL ptr dereference in usb_cser_notify"

8 years agoMerge "qcom-charger: add support for WiPower"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:30 +0000 (04:58 -0700)]
Merge "qcom-charger: add support for WiPower"

8 years agoMerge "msm: misc: hdcp: add hdcp support for display port"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:29 +0000 (04:58 -0700)]
Merge "msm: misc: hdcp: add hdcp support for display port"

8 years agoMerge "soc: qcom: socinfo: Add support for APQCOBALT"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:28 +0000 (04:58 -0700)]
Merge "soc: qcom: socinfo: Add support for APQCOBALT"

8 years agoMerge "ARM: dts: msm: Add platform info for msmcobalt"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:27 +0000 (04:58 -0700)]
Merge "ARM: dts: msm: Add platform info for msmcobalt"

8 years agoMerge "ARM: dts: msm: Update the graphics OPP property on MSMCOBALT"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:26 +0000 (04:58 -0700)]
Merge "ARM: dts: msm: Update the graphics OPP property on MSMCOBALT"

8 years agoMerge "iio: adc: rradc: Add RRADC channels"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:23 +0000 (04:58 -0700)]
Merge "iio: adc: rradc: Add RRADC channels"

8 years agoMerge "iio: adc: rradc: Update RRADC reads and scaling"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:22 +0000 (04:58 -0700)]
Merge "iio: adc: rradc: Update RRADC reads and scaling"

8 years agoMerge "ARM: dts: msm: set 2k truly panel as default for qrd platform"
Linux Build Service Account [Wed, 3 Aug 2016 11:58:20 +0000 (04:58 -0700)]
Merge "ARM: dts: msm: set 2k truly panel as default for qrd platform"

8 years agoinput: touchscreen: reduce lpm current of avdd reg for ITE tech
Shantanu Jain [Fri, 27 Nov 2015 07:04:38 +0000 (12:34 +0530)]
input: touchscreen: reduce lpm current of avdd reg for ITE tech

Reduce lpm current of avdd regulator for ITE tech touch controller
to save power dissipation in lpm state.

Change-Id: I4b0c532096f1555561ad33e937cb947e85f987cd
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoqseecom: Change format specifier %p to %pK
Mallikarjuna Reddy Amireddy [Thu, 28 Apr 2016 09:57:00 +0000 (15:27 +0530)]
qseecom: Change format specifier %p to %pK

Format specifier %p can leak kernel addresses while not valuing the
kptr_restrict system settings. When kptr_restrict is set to (1), kernel
pointers printed using the %pK format specifier will be replaced with 0's.
So that %pK will not leak kernel pointers to unprivileged users.
So change the format specifier from %p to %pK.

Debugging Note : &pK prints only Zeros as address. if you need actual
address information, pls echo 0 to kptr_restrict.
$ echo 0 > /proc/sys/kernel/kptr_restrict

Change-Id: I0baf2be2d5a476e2e4267f20b99d0ddf5492469e
Signed-off-by: Mallikarjuna Reddy Amireddy <mamire@codeaurora.org>
8 years agoinput: touchscreen: add delay after enabling regulators
Shantanu Jain [Fri, 23 Oct 2015 05:53:12 +0000 (11:23 +0530)]
input: touchscreen: add delay after enabling regulators

ITE tech touch controller needs a delay to come to an active
state after regulators are enabled and do any i2c transactions.
So this change adds a delay for the same.

Change-Id: Ifd7c936d8f5d364b78c64aeebd1517d49a5b8936
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: Change touch driver suspend code flow for XO shutdown
Shantanu Jain [Wed, 7 Oct 2015 09:21:33 +0000 (14:51 +0530)]
input: touchscreen: Change touch driver suspend code flow for XO shutdown

ITE tech touch driver puts the controller to IDLE state in suspend
function through an i2c write into controller register space. But
due to multiple triggers of fb blank events, the suspend
function is called repeatatively without resume, and the driver
causes i2c nacks in suspend function while again putting the
controller is IDLE state. This keeps the QUP5 clock ON and XO shutdown
doesn't happen.
This change prevents the touch driver to execute the i2c write, to
put the controller in IDLE state, by repeatative fb blank events,
and causes XO shutdown to happen within time limits.

Change-Id: Ie3ee6b861c10ae901dea54f252f6a799d688f02a
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: touchscreen: correct probe error path for ITE tech driver
Shantanu Jain [Mon, 12 Oct 2015 16:50:06 +0000 (22:20 +0530)]
input: touchscreen: correct probe error path for ITE tech driver

ITE tech touch driver dynamically detects the controller attached
to the device in its probe. And if the driver fails to identify
the controller, it exits the probe with the error code. But in the
probe error path, it doesn't retain the error code, replace it
with zero and registers the device instead of failing.
This change corrects the probe error path of ITE tech touch driver
and makes sure it returns the error code if it fails.

Change-Id: I8f193ee10076b6cf058b0a6940db54f71f70b758
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add gpio configuration support
Shantanu Jain [Fri, 22 May 2015 14:39:03 +0000 (20:09 +0530)]
input: it7258_ts_i2c: add gpio configuration support

Add gpio configuration support for ITE tech touchscreen
driver.

Change-Id: I261db5723a19a7084072487527b350d155a54e78
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add regulator framework support
Shantanu Jain [Mon, 18 May 2015 19:25:38 +0000 (00:55 +0530)]
input: it7258_ts_i2c: add regulator framework support

Add regulator framework support for ITE tech driver.

Change-Id: Ib666f406442ad5f323a08e4624832fba5e2546e2
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add low reset and reset delay support
Shantanu Jain [Tue, 19 May 2015 09:59:26 +0000 (15:29 +0530)]
input: it7258_ts_i2c: add low reset and reset delay support

Add low reset gpio and delay reset support for ITE tech
driver.
ITE tech controller support low reset gpio configuration. This
property is parsed from the DT, and reset gpio is set to low.
Reset delay value is also parsed from DT which is required by the
ITE tech controller.

Change-Id: I314677747e8bbbcb273cd898376bbe03197c8c25
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add pinctrl support
Shantanu Jain [Mon, 10 Aug 2015 18:07:35 +0000 (23:37 +0530)]
input: it7258_ts_i2c: add pinctrl support

Add pinctrl support for ITE tech touchscreen driver.

Change-Id: I3bbea110af189f236bb175670210e086e15d5d2d
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoinput: it7258_ts_i2c: Do not put driver in infinite loop
Shantanu Jain [Mon, 24 Aug 2015 15:17:01 +0000 (20:47 +0530)]
input: it7258_ts_i2c: Do not put driver in infinite loop

Do not put the ITE tech touchscreen driver in infinite
loop while probing.
Sometimes, when there is multiple touchscreen support on the
same snapdragon device, then the dynamic detection is used
to confirm which touchscreen is connected to the device.
So, this change will not make the CPUs to get hogged with
infinite loop of ITE tech driver.
Now it can easily get out of probe with error path releasing
the resources properly.

Change-Id: Ib9905017fc18999e7ab7c9cb8bc1af398f5f9791
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
8 years agoASoC: wcd9335: Add support to enable low power mode on codec
Sudheer Papothi [Thu, 12 May 2016 18:46:56 +0000 (00:16 +0530)]
ASoC: wcd9335: Add support to enable low power mode on codec

Codec is in digital core power collapse when there is no
audio usecase but low power audio usecases needs codec to
be out of power collapse. Changes bring codec out of
digital core power collapse for low power audio usecases
without enabling master clock.

CRs-fixed: 1022917
Change-Id: I762fc1dc6b6527608e73ac5144215ee141570aac
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agoASoC: msm8996: Add CPE ECPP DAI instance for ECPP path
Sudheer Papothi [Tue, 3 May 2016 01:53:28 +0000 (07:23 +0530)]
ASoC: msm8996: Add CPE ECPP DAI instance for ECPP path

Add support for CPE(Codec Processing Engine) second voice
wakeup session using ECPP(Echo cancellation Ping-Pong) hardware
path. This allows to enable two concurrent CPE sessions, one
on MAD(Mic Always-on Detection) and the other on ECPP.

CRs-fixed: 1022917
Change-Id: I7a14a2d0b5455d427f90e02506b996fc615c848a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agoMerge "defconfig: Enable REMOTEQDSS"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:57 +0000 (21:58 -0700)]
Merge "defconfig: Enable REMOTEQDSS"

8 years agoMerge "msm: ipa: update wan rx size buffer"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:56 +0000 (21:58 -0700)]
Merge "msm: ipa: update wan rx size buffer"

8 years agoMerge "Revert "Thermal: handle thermal zone device properly during system sleep""
Linux Build Service Account [Wed, 3 Aug 2016 04:58:55 +0000 (21:58 -0700)]
Merge "Revert "Thermal: handle thermal zone device properly during system sleep""

8 years agoMerge "irq-chip: gic-v3: remove print message in irq driver"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:55 +0000 (21:58 -0700)]
Merge "irq-chip: gic-v3: remove print message in irq driver"

8 years agoMerge "ASoC: wcd9335: Changes to support CPE session using EC PP path"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:54 +0000 (21:58 -0700)]
Merge "ASoC: wcd9335: Changes to support CPE session using EC PP path"

8 years agoMerge "CHROMIUM: android: binder: Fix potential scheduling-while-atomic"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:52 +0000 (21:58 -0700)]
Merge "CHROMIUM: android: binder: Fix potential scheduling-while-atomic"

8 years agoMerge "android: binder: Disable preemption while holding the global binder lock."
Linux Build Service Account [Wed, 3 Aug 2016 04:58:51 +0000 (21:58 -0700)]
Merge "android: binder: Disable preemption while holding the global binder lock."

8 years agoMerge "soc: qcom: irq_helper: Add irq helper module"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:50 +0000 (21:58 -0700)]
Merge "soc: qcom: irq_helper: Add irq helper module"

8 years agoMerge "ARM: dts: msm: vote IPA_cfg on msmcobalt"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:50 +0000 (21:58 -0700)]
Merge "ARM: dts: msm: vote IPA_cfg on msmcobalt"

8 years agoMerge "msm: ipa: Fix the memory leak on exception"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:49 +0000 (21:58 -0700)]
Merge "msm: ipa: Fix the memory leak on exception"

8 years agoMerge "smb-lib: Add support for thermal daemon throttling fcc"
Linux Build Service Account [Wed, 3 Aug 2016 04:58:48 +0000 (21:58 -0700)]
Merge "smb-lib: Add support for thermal daemon throttling fcc"

8 years agoASoC: wcd-spi: SPI driver for WCD audio codecs
Bhalchandra Gajare [Tue, 28 Jun 2016 01:18:29 +0000 (18:18 -0700)]
ASoC: wcd-spi: SPI driver for WCD audio codecs

WCD audio codecs contain SPI slave hardware module to provide access
to codec memory and SPI register space. Change adds driver for this
slave hardware. This driver uses regmap for SPI internal register
accesses and plugs in to standard SPI framework as child device to
master controller driver.

CRs-Fixed: 1049012
Change-Id: I0640ac1ed60a2ec3633636760593211ecd2f9c2d
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
8 years agowcd_dsp_mgr: Add the WCD DSP manager driver
Bhalchandra Gajare [Sat, 11 Jun 2016 17:54:29 +0000 (10:54 -0700)]
wcd_dsp_mgr: Add the WCD DSP manager driver

WCD audio codecs have DSP embedded to perform signal processing on
audio data. The codec driver has control over the DSP clock, power etc,
whereas the DSP memory can be accessed through an different bus slave
interface. In such cases, it is required to make sure the hardware
expected sequences are met for the DSP to function properly. The
wcd-dsp manager driver registers as master to component framework
and provides the ability to sequence the operations between the child
drivers. Upon registration of all children, the wcd-dsp manager driver
parses the wcd dsp image, downloads the image and boots up the DSP.
It invokes the component children to perform the tasks in sequence.

CRs-Fixed: 1049012
Change-Id: I059e1b111c607e49a7cc9a7940cf458e701c73d3
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
8 years agoASoC: wcd-dsp-utils: Add utilities for wcd dsp
Bhalchandra Gajare [Sat, 11 Jun 2016 20:08:34 +0000 (13:08 -0700)]
ASoC: wcd-dsp-utils: Add utilities for wcd dsp

wcd_dsp_utils adds utilities that will be used by the
wcd dsp manager driver. Add helper functions to parse
WDSP image and provide list of segments to be loaded
to memory.

CRs-Fixed: 1049012
Change-Id: I2b1464c2a035a039440e6d3e5122ad3f90da4d1e
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
8 years agomfd: wcd934x: Mark CPE registers as volatile
Bhalchandra Gajare [Mon, 1 Aug 2016 23:23:32 +0000 (16:23 -0700)]
mfd: wcd934x: Mark CPE registers as volatile

Currently only read-only registers are marked as volatile. It is
possible that some registers could be read-write and still have
subset of the bits that are updated by the hardware. Add change
to mark such CPE (codec processing engine) register as volatile.

CRs-Fixed: 1049012
Change-Id: I1cedf646d0df1ab5968df4830502649de305c9d1
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
8 years agomsm: ipa: update wan rx size buffer
Sunil Paidimarri [Tue, 5 Jul 2016 19:08:36 +0000 (12:08 -0700)]
msm: ipa: update wan rx size buffer

Consider headroom also while calculating wan
pipe rx buffer size.

Change-Id: Ic1edcb3548eae152fc01de88859bcf311f48f847
CRs-Fixed: 1037822
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
8 years agomsm: gsi: do not register to inter ee irq
Skylar Chang [Tue, 2 Aug 2016 00:46:24 +0000 (17:46 -0700)]
msm: gsi: do not register to inter ee irq

Inter EE commands and IRQ are not supported currently
and AP does not have access to those.

CRs-Fixed: 1048160
Change-Id: I033044db83e8af6fb0976d711ea12c2f99291f91
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agoRevert "Thermal: handle thermal zone device properly during system sleep"
Ram Chandrasekar [Mon, 1 Aug 2016 21:02:41 +0000 (15:02 -0600)]
Revert "Thermal: handle thermal zone device properly during system sleep"

This reverts commit <a67208e94d945ad890f8dc4734ec5fdb3219cc03>.

This commit prevented xo shutdown as during suspend exit, WSA sensor for
temperature read triggered a slimbus wakeup. Slimbus suspend mechanism
will expect a qmi message after the system has entered suspend. This
will wake the system from suspend. This happens recursively and
system will never enter suspend.

Revert this commit to avoid this issue, till the slimbus suspend
mechanism is fixed.

Change-Id: I4236f4b6272d0bccaf8a2d6f7d5435caf044bd59
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
8 years agomsm: sde: Correct rotator irq handler to acknowledge irq once
Alan Kwong [Mon, 25 Jul 2016 02:07:41 +0000 (22:07 -0400)]
msm: sde: Correct rotator irq handler to acknowledge irq once

Current handler acknowledges interrupt in both the irq handler
and the irq thread. This clears interrupts that come between the
irq handler and the irq thread. This patch reorganizes irq
acknowledgment to the irq handler and changes the irq thread to
also check for completed requests by comparing request timestamp
and hardware completion timestamp. Upon error or timeout event,
hardware status is dumped to aid irq related fault isolation.

CRs-Fixed: 1044128
Change-Id: I085c2c2ec55106a8fb196f3ef1cfcb42e2b2507c
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
8 years agoiio: adc: rradc: Add RRADC channels
Siddartha Mohanadoss [Thu, 28 Jul 2016 22:05:09 +0000 (15:05 -0700)]
iio: adc: rradc: Add RRADC channels

Add support to read charger and skin temp hot and
too hot temperature threshold values programmed
during initialization.

Change-Id: I46dca1f606b5414bf7a032c18c9684ba2e53cf28
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agoiio: adc: rradc: Update die_temp and chg_temp scaling
Siddartha Mohanadoss [Wed, 27 Jul 2016 00:04:56 +0000 (17:04 -0700)]
iio: adc: rradc: Update die_temp and chg_temp scaling

The final temperature values for PMI die temperature and
charger temperature are in units of millidegC. Update
the slope factor value to avoid losing resolution
accuracy while values are reported in units of millidegC.

Change-Id: Iec4aa730fa97133af0c0fb9d47557738ef6f45a0
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>