Commit graph

573290 commits

Author SHA1 Message Date
Shantanu Jain
fb07736a10 input: touchscreen: increase number of checks for touch controller status
Before doing any i2c read/write, driver needs to check the value
of QUERY buffer to know if the controller is in ready or busy state.
Sometime, it takes more number of checks to know the status.
So this change increases the number of checks to know the ITE tech
touch controller status.

This is a propagated patch from 3.18 kernel 'commit 60589278b8e7 ("input:
touchscreen: increase number of checks for touch controller status")

Change-Id: I30dd0cf0b15538e67f50725754d5059e2fe721d0
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-08-05 17:09:43 +05:30
Mao Li
5218b8f9f8 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>
2016-08-05 04:35:02 -07:00
Venkata Narendra Kumar Gutta
6718f53ddd ASoC: msm: qdsp6v2: Fix crash during WFD playback and SSR
Device crash is observed for consecutive SSR's triggered during WFD
playback. This is due to callback functions registered by afe client
aren't reset during the first SSR and the same callback functions are
being used for the next SSR event, resulting access in freed data.
Fix this issue by resetting the callback functions during SSR.

CRs-Fixed: 1045045
Change-Id: Ib651dd59b30e4924f4e199cfd4fae64df6030d9d
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2016-08-05 01:19:37 -07:00
Gaurav Singhal
f2e141460b NFC: IRQ gpio usage modification in nfc_read
Modified condition to ensure data is read
only after interrupt has occurred.

Spurious interrupt handling is done in nfc_read
instead of irq handler.

Change-Id: Ie2362610fe922e792e6358b4386c828fdd754fa8
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
2016-08-04 23:54:16 -07:00
Linux Build Service Account
28352998de Merge "ASoC: wcd934x: Enable smart boost on WCD9340 codec" 2016-08-04 21:39:48 -07:00
Linux Build Service Account
0cd21ace7b Merge "icnss: pass fw version to wlan driver" 2016-08-04 21:39:47 -07:00
Linux Build Service Account
286ce4f15c Merge "soc: qcom: pil: Add error codes to error logs" 2016-08-04 21:39:47 -07:00
Linux Build Service Account
5d249813cd Merge "msm: kgsl: Allocate global buffers through paged memory" 2016-08-04 21:39:46 -07:00
Linux Build Service Account
132ea5885a Merge "socinfo: Export API for getting SOC serial number" 2016-08-04 21:39:45 -07:00
Linux Build Service Account
8716a4c3eb Merge "ARM: dts: msm: Add dmic clock rate on ECPP path for 8996" 2016-08-04 21:39:44 -07:00
Linux Build Service Account
0bf28c0fae Merge "ASoC: msm8996: Add independent clock support on codec" 2016-08-04 21:39:43 -07:00
Linux Build Service Account
0643e955c6 Merge "mdss: display-port: add support to use common EDID parser" 2016-08-04 21:39:42 -07:00
Linux Build Service Account
5c66997cc1 Merge "input: touchpanel: Goodix GT915 driver cleanup" 2016-08-04 21:39:41 -07:00
Linux Build Service Account
0b3e75a92b Merge "input: touchscreen: reduce lpm current of avdd reg for ITE tech" 2016-08-04 21:39:40 -07:00
Linux Build Service Account
bf02aa69f5 Merge "input: touchscreen: add delay after enabling regulators" 2016-08-04 21:39:39 -07:00
Linux Build Service Account
70683f96aa Merge "ARM: dts: msm: Add battery data for QRD SKUK device" 2016-08-04 21:39:39 -07:00
Hemant Kumar
46f649456d ARM: msmcortex_defconfig: Enable NCM function driver
Enables configfs supported NCM function driver

Change-Id: Ic23796c5a1388c41d533ca0f4fad04d01fe9e965
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-04 19:22:48 -07:00
Aravind Venkateswaran
48cb8afa7b msm: mdss: dsi: fix lcd mode selection gpio config when display is off
When display is turned off, ensure that the lcd mode selection GPIO is
set to output LOW. This would prevent any current leakage from that GPIO
whenever display is off.

Change-Id: I91f636b2c1cc1890b4ca28f52e5190561bc5d927
CRs-Fixed: 1050785
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-08-04 17:37:29 -07:00
Puja Gupta
d5e763cc2e soc: qcom: pil: Add flag to know if modem SSR happened.
Introduce a flag to know if modem is restarting from cold boot or from
SSR.
Use this flag to decide if modem memory needs to be assigned back to
linux. After cold boot linux already owns modem memory and trying to
assign it back from modem is incorrect.

CRs-Fixed: 1050153
Change-Id: I1c1ef35ea7ef6c2552a22b85c5af260ade413777
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-08-04 17:10:11 -07:00
Puja Gupta
e701779833 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>
2016-08-04 16:46:28 -07:00
Praneeth Paladugu
5703768add msm: vidc: Fix decoder output buffer size issue
Decoder YUV buffer size should be derived based on current
resolution using Venus MACROS. This the only size that
clients are aware of. Using the size from FW will make
buffer sizes mismatches and unnecessary failures.

By not using buffer size from Venus, driver can avoid
unnecessary buffer requirement calls. This will reduce the
start-up latency.

CRs-Fixed: 1011881
Change-Id: I90762967e8b7888a775ce4771b6cdb08528b6513
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-08-04 14:22:03 -07:00
Shiv Maliyappanahalli
f91ccf8631 ASoC: msm: qdsp6v2: set correct loopback mode
FM audio playback is failing as the loopback mode
is hardcoded to EC mode which is incorrect for
FM audio playback usecase.
Change it to default loopback mode.

Change-Id: I36b60ba2283b0bbe36f492e1410603b8c2050cc4
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-08-04 12:18:24 -07:00
Sudheer Papothi
976c5443ca 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>
2016-08-05 00:07:29 +05:30
Amar Singhal
1aaca3af99 msm: wlan: Update db.txt for some countries
Update TX power for countries Dominica, Dominican Republic,
Egypt, El Salvador, India, Israel, Kuwait, Malaysia,
Morocco, Namibia, Panama, Russia, Saint Kitts, Saint Lucia,
Tunisia and Uzbekistan.

CRs-Fixed: 1049984
Change-Id: I6dda3b5e8b314d392e51f492b23ce0342e47800a
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2016-08-04 11:25:39 -07:00
Zhen Kong
61623fad50 msm: crypto: Fix integer over flow check in qcedev driver
Integer overflow check always fails when ULONG_MAX is used,
as ULONG_MAX is 2^64-1, while req->data[i].len and total
are uint32_t. Make change to use U32_MAX instead of
ULONG_MAX.

CRs-fixed: 1046507
Change-Id: Iccf9c32400ecc7ffc0afae16f58c38e5d78a5b64
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-08-04 11:08:48 -07:00
Sudheer Papothi
c199c86a61 ASoC: wcd9335: Configure DMIC clock rate for ECPP path
DMIC clock on ECPP(Echo Cancellation Ping-Pong) hardware path
can run at lower clock rate to avoid power consumption. Select
ECPP dmic clock rate when decimator is connected only to ECPP
path.

CRs-fixed: 1022917
Change-Id: I968e1fe6b099ebf5334eadb209219181293b207f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-08-04 11:05:51 -07:00
Sudheer Papothi
c5ee57ee2b drivers: mfd: wcd9xxx: Add support to configure dmic clock
DMIC clock on ECPP(Echo Cancellation Ping-Pong) path can be set to
lower clock rate to avoid power consumption. Change configures the
DMIC clock rate on ECPP path based on device tree settings.

CRs-fixed: 1022917
Change-Id: I03e1a7f5ef3cf1b1907c03a3d38965ce3a611bc4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-08-04 11:05:31 -07:00
Sudheer Papothi
4966222ae1 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>
2016-08-04 11:04:34 -07:00
Sudheer Papothi
da161bce89 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>
2016-08-04 11:00:16 -07:00
Yuanyuan Liu
74c99fcb90 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>
2016-08-04 10:13:09 -07:00
Karthikeyan Ramasubramanian
015c03c755 defconfig: msmcortex: Enable G-Link SPI Transport driver
Enable G-Link SPI Transport driver to enable off-chip communication
over SPI bus.

CRs-Fixed: 1045916
Change-Id: I268d96f04b034edad2fadea8ef2c14fe8d8de251
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-08-04 10:30:27 -06:00
Karthikeyan Ramasubramanian
bb82f6afa3 ARM: dts: msm: Add G-Link SPI Transport device for msmcobalt
G-Link SPI Transport is used to communicate with external audio codec.
Add G-Link SPI Transport device to support that configuration.

CRs-Fixed: 1045916
Change-Id: I97ca857c21d8873574a180d289e2fbca29c8a891
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-08-04 10:30:08 -06:00
Karthikeyan Ramasubramanian
43c0652c76 soc: qcom: glink_spi_xprt: Add support for GLink SPI Transport
GLink SPI Transport enables point-to-point communication with an
external subsystem that uses SPI bus to interface. This enables
multiplexing multiple logical channels over the SPI bus.

CRs-Fixed: 1045916
Change-Id: I1936bb0542bcd531726bf987ef806969ce96d498
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-08-04 10:29:52 -06:00
Linux Build Service Account
3336c17fe4 Merge "msm: mdss: Enable dynamic FPS support for msmcobalt" 2016-08-04 08:22:41 -07:00
Linux Build Service Account
1ecb9eaec7 Merge "arm64: dma-mapping: don't clear dma ops on bypass detach" 2016-08-03 21:12:51 -07:00
Linux Build Service Account
4cffd9684d Merge "Revert "arm64: dma-mapping: Attach IOMMUs as groups"" 2016-08-03 21:12:51 -07:00
Linux Build Service Account
62fc2827ae Merge "ARM: dts: msm: Remove bogus stream ID from PCIe IOMMU" 2016-08-03 21:12:50 -07:00
Linux Build Service Account
4859f1dc3c Merge "ARM: dts: msm: change to use SW AEAD and HMAC algorithm for msmcobalt" 2016-08-03 21:12:49 -07:00
Linux Build Service Account
99295a318f Merge "soc: qcom: gladiator_erp_v2: initialize return value" 2016-08-03 21:12:48 -07:00
Linux Build Service Account
bb61ebf654 Merge "qcom-charger: qpnp-smb2: use values from hardware for default settings" 2016-08-03 21:12:47 -07:00
Linux Build Service Account
9887341b46 Merge "Revert "drivers: mfd: Return EPROBE_DEFER during codec failure"" 2016-08-03 21:12:46 -07:00
Linux Build Service Account
768b594f25 Merge "leds: qpnp-flash-v2: add support to query battery parameters" 2016-08-03 21:12:46 -07:00
Linux Build Service Account
e10d63350d Merge "clk: msm: clock: Add the NO_RATE_CACHE flag to DP clocks on MSMCOBALT" 2016-08-03 21:12:45 -07:00
Linux Build Service Account
46e710a5ec Merge "soc: qcom: core_ctl: Fix possible null-pointer dereference" 2016-08-03 21:12:44 -07:00
Linux Build Service Account
58f94dcd48 Merge "defconfig: arm64: msm: Re-enable qtaguid" 2016-08-03 21:12:44 -07:00
Linux Build Service Account
4f7f48c2bb Merge "ASoC: wcd9335: Add support to enable low power mode on codec" 2016-08-03 21:12:42 -07:00
Linux Build Service Account
6e0cc26af1 Merge "msm: mdss: add support for adaptive variable refresh feature" 2016-08-03 21:12:41 -07:00
Linux Build Service Account
06e18514c2 Merge "msm: sde: Correct rotator irq handler to acknowledge irq once" 2016-08-03 21:12:40 -07:00
Linux Build Service Account
286b461b04 Merge "msm: gsi: do not register to inter ee irq" 2016-08-03 21:12:33 -07:00
Linux Build Service Account
eff7f7ed60 Merge "msm: camera_v2: Fix a return code issue in smmu mapping" 2016-08-03 21:12:32 -07:00