Commit graph

574800 commits

Author SHA1 Message Date
Shantanu Jain
4e02797d45 input: touchscreen: Correct return value check in Goodix driver
Correct return value check of gtp_read_fw_version, called in probe
of the Goodix driver. The return value is actually the number of
registers read through gtp_i2c_read() function call.
Also change the error message of gtp_check_product_id.

Change-Id: I0b643e250a487f08a19555237802b020b0873d1a
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-13 01:47:03 -07:00
Shantanu Jain
431c5aa98a input: touchscreen: Clean code for i2c_read and i2c_write
Use standard initializer code in gtp_i2c_read and
gtp_i2c_write functions for Goodix touchscreen driver.

Change-Id: Id954be61a0b4596339a659928fb630c5c5538a9a
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-13 01:46:56 -07:00
Shantanu Jain
5741a47581 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>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-13 01:46:49 -07:00
Bingzhe Cai
24a8120f34 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.

Change-Id: I5173fc1ca021fd45c939c7c8a4f460651330de5b
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:53:48 -07:00
Shantanu Jain
0ddb25d00e input: touchscreen: Add dynamic detection support to Goodix driver
Add dynamic detection support to goodix driver, where
the driver tries to read the chip id and make sure
it is communicating with the right chip.

gtp_read_version is modified to gtp_read_fw_version
which reads the firmware version from the controller
and will be used during fw update process.

Change-Id: I2dc51b84f817413da6bf9b266e2fe7e0bb09c4bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:53:38 -07:00
Bingzhe Cai
90d5e14e32 input: touchscreen: modify report event according to MT protocol B
Multi-touch(MT) protocol B use input_mt_report_slot_state()
instead of send ABS_MT_TRACKING_ID event directly, so modify
the driver to follow the protocol and remove redundant protocol
A code.

Change-Id: I542e61fabaaa04fcf5fb7e454e10599511f18e39
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:52:59 -07:00
Shantanu Jain
c39dd15cf7 input: touchscreen: release all touches before suspend
Release all touches before going to suspend for goodix
gt9xx TS driver.

Change-Id: Ia3446f3c23be4fe29bfea5f85b22e8b903cffb9e
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 23:52:52 -07:00
Figo Wang
6ae8594368 input: makefile: Add makefile and kconfig for GT9xx CTP
Add Makefile and Kconfig to build Goodix GT9xx Touchscreen
Driver.

Change-Id: Ibbcdcbb4563bc022d6e4034c37bc633eb9b34315
Signed-off-by: Figo Wang <figow@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-13 11:38:59 +05:30
Linux Build Service Account
b7bf6d2b63 Merge "icnss: Add support of suspend_noirq/resume_noirq" 2016-09-12 14:42:28 -07:00
Linux Build Service Account
e8afdbad3e Merge "ASoC: msm: Add Buffer overflow check" 2016-09-12 14:42:27 -07:00
Linux Build Service Account
a1bf0348c4 Merge "input: touchscreen: add support for IT7260 touch controller series" 2016-09-12 14:42:27 -07:00
Linux Build Service Account
023310d9d6 Merge "input: touchpanel: enable protocol B for skuf CTP driver" 2016-09-12 14:42:25 -07:00
Linux Build Service Account
0ac10439ff Merge "input: touchpanel: Add FB notifications support to GT9xx" 2016-09-12 14:42:24 -07:00
Linux Build Service Account
bfb9253e65 Merge "USB: usbfs: fix potential infoleak in devio" 2016-09-12 14:42:24 -07:00
Linux Build Service Account
f1a35480ec Merge "clk: msm: clock: Update the supported frequencies for hmss_ahb_clk_src" 2016-09-12 14:42:22 -07:00
Linux Build Service Account
50af22ee1c Merge "clk: msm: gcc-cobalt: Add support for gcc_aggre1_ufs_axi_hw_ctl_clk" 2016-09-12 14:42:22 -07:00
Linux Build Service Account
43f14d2d08 Merge "msm: mdss: enable VBIF write_gather for WB2" 2016-09-12 14:42:21 -07:00
Linux Build Service Account
fdc80ae02b Merge "ARM: dts: msm: use QCOM replicator for msmcobalt" 2016-09-12 14:42:20 -07:00
Linux Build Service Account
172717f1c7 Merge "coresight-tpda: add support to generate FREQTS packets" 2016-09-12 14:42:19 -07:00
Linux Build Service Account
dfad0f9a64 Merge "coresight-tpda: skip writing '0' to FREQREQ_VAL register" 2016-09-12 14:42:19 -07:00
Yuanyuan Liu
b56e6e2c96 icnss: Add support of suspend_noirq/resume_noirq
Register suspend_noirq and resume_noirq for WLAN driver.
This could make sure that no wake up is pending from FW
and if initial wake up is received then failing suspend_noirq
should trigger resume.

CRs-Fixed: 1060667
Change-Id: Ib233ce66ad21819d2d62155072f0bf985a12837b
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-12 09:51:38 -07:00
Linux Build Service Account
9c8924dbaa Merge "input: synaptics_2.6: add pinctrl support for Synaptics 2.6 driver" 2016-09-12 05:16:04 -07:00
Linux Build Service Account
bc7a35be18 Merge "ASoc: msm: qdsp6v2: Fix timestamp glitch during gapless transition" 2016-09-12 05:16:03 -07:00
Linux Build Service Account
5872e6e3e8 Merge "ARM: dts: msm: Add missing glink_pkt devices for MSMCOBALT" 2016-09-12 05:16:02 -07:00
Bingzhe Cai
4bf592770b input: touchpanel: enable protocol B for skuf CTP driver
Skuf use touch panel protocol B for touch event recognition that
needs enable this protocol in driver.

Change-Id: Ic855ed4fb0277a9bc5996bcb310db67b8ccf5c03
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 05:03:53 -07:00
Bingzhe Cai
ed6a734b04 input: touchpanel: Add FB notifications support to GT9xx
Add support for FB notifications to trigger suspend/resume
based on FB blank/unblank events.

Change-Id: I61803e3a731e047d0641e3b1ccbae58b9bd1bd89
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 05:03:47 -07:00
Bingzhe Cai
8b439ca7fa input: touchpanel: Add power control to GT9xx driver
Add power initialization  function to request internal and external
LDO depends on device tree configuration. Add power control function
to enable and disable device power.

Change-Id: If063900f8cd61c36c4b200d781c68e742cd6bbaf
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 05:03:41 -07:00
Sudhakar Manapati
9d4062a965 input: touchscreen: add support for IT7260 touch controller series
IT7260 touch controllers are capacitative touch controller ICs
with multi-touch support and can detect upto 3 fingers.

Change-Id: I20a4339639a715111a340b7a607448ec7078549e
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-09-12 17:25:58 +05:30
Changmin Liu
79f23effb8 input: synaptics_2.6: add pinctrl support for Synaptics 2.6 driver
Add pinctrl support for Synaptics S2333 controller so that the irq and
pwr pins could be pulled up when probed and resumed. Furthermore, they
should be pulled down when suspended and removed.

Change-Id: If517747243a605eacd1f6ffd6d1f7c0d45d06c1b
Signed-off-by: Changmin Liu <changmil@codeaurora.org>
2016-09-12 14:40:02 +05:30
Bingzhe Cai
1f24ee5748 input: touchpanel: Add DT support for Goodix touchpanel driver
Add device tree parser to allow Goodix touchpanel driver to get
board dependent configuration from device tree.

Change-Id: I702400140130fd3b673e0e13a8dbdb7060bba881
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-12 02:04:51 -07:00
Xiaonian Wang
d418cf9054 input: synaptics_dsx_2.6: not reinit when spontaneous reset is detected
There is no need to reinit device when spontaneous reset is detected,
touch will recover by itself.

Change-Id: Ifb5b134d0fbeb2f55f16af8806abb9c8e51c35e0
Signed-off-by: Xiaonian Wang <xiaonian@codeaurora.org>
2016-09-11 23:25:26 -07:00
Shantanu Jain
1919671d4d input: synaptics_dsx_2.6: correct secure_touch_init function
In synaptics_dsx_2.6 touch driver, secure_touch_init tries to get
the QUP clocks for the secure touch functionality. But as these
calls are optional and TZ might get the owenership of these clocks,
this change removes the error return statement, so that the
secure touch can be initialized properly.

Change-Id: I12b5075d484cd397bfb423479589e159a2193f31
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-12 11:52:37 +05:30
Linux Build Service Account
774736d179 Merge "ARM: dts: msm: Add support for GDSCs for MSMfalcon" 2016-09-11 23:19:25 -07:00
Linux Build Service Account
a19a2ddc92 Merge "ARM: dts: msm: Fix vconn-supply typo in PMICOBALT" 2016-09-11 23:19:25 -07:00
Linux Build Service Account
34f5a9df8f Merge "ARM: dts: msm: add parallel charger io channels for MSMCOBALT" 2016-09-11 23:19:24 -07:00
Linux Build Service Account
6179dd5c5b Merge "smb138x-charger: expose charger temperature" 2016-09-11 23:19:23 -07:00
Linux Build Service Account
55d84b4e86 Merge "ARM: dts: msm: Add bus scaling for venus PIL for MSMCOBALT" 2016-09-11 23:19:22 -07:00
Linux Build Service Account
7187b69448 Merge "ARM: dts: msm: update the sound node for msmcobalt QRD" 2016-09-11 23:19:21 -07:00
Linux Build Service Account
7f1a56302b Merge "defconfig: msm: sde: Add config for SDE rotator EVTLOG debug" 2016-09-11 23:19:20 -07:00
Linux Build Service Account
e5f0209b25 Merge "msm: sde: Add EVTLOG and REG dump support for SDE rotator" 2016-09-11 23:19:20 -07:00
Linux Build Service Account
ef33877be2 Merge "pinctrl: qcom: spmi-gpio: Correct power_source range check" 2016-09-11 23:19:15 -07:00
Linux Build Service Account
8949cdb2b0 Merge "pinctrl: qcom: spmi-gpio: Add dtest route for digital input" 2016-09-11 23:19:14 -07:00
Linux Build Service Account
f31b1001e1 Merge "pinctrl: qcom: spmi-gpio: Add support for GPIO LV/MV subtype" 2016-09-11 23:19:13 -07:00
Taniya Das
aa26c2ba43 ARM: dts: msm: Add support for GDSCs for MSMfalcon
These power domains are required by clients to be controlled before any
clock request, so add support for the same.

Change-Id: I7d600648281d2f4375307b0e0dd1bf121d0e6e4f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-09-12 09:27:37 +05:30
Linux Build Service Account
911e592fdc Merge "icnss: Add ICNSS utility file" 2016-09-11 13:02:24 -07:00
Linux Build Service Account
9ac6506762 Merge "ASoC: msm: qdsp6v2: Fix excessive logging from VOIP driver" 2016-09-11 09:04:06 -07:00
Linux Build Service Account
b9897566ca Merge "cfg80211: Add support for aborting an ongoing scan" 2016-09-11 09:04:05 -07:00
Linux Build Service Account
3856375d06 Merge "cfg80211: Define macro to indicate support for cfg80211 abort scan api" 2016-09-11 09:04:04 -07:00
Linux Build Service Account
4970303a87 Merge "msm: ipa: mhi: add perf vote" 2016-09-11 04:03:38 -07:00
Linux Build Service Account
885abe4b27 Merge "msm: ipa: fix memory leak on QMI" 2016-09-10 23:41:00 -07:00