summaryrefslogtreecommitdiff
path: root/drivers/input (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | | | input: touchpanel: fix security issues in GT915 driverBingzhe Cai2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | input: touchscreen: Add dynamic detection support to Goodix driverShantanu Jain2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | input: touchscreen: modify report event according to MT protocol BBingzhe Cai2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | input: touchscreen: release all touches before suspendShantanu Jain2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | input: makefile: Add makefile and kconfig for GT9xx CTPFigo Wang2016-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | Merge "input: Makefile: include ITE tech touch driver for compilation"Linux Build Service Account2016-09-12
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | input: Makefile: include ITE tech touch driver for compilationAbinaya P2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ITE tech touch screen driver for the compilation. Change-Id: Iee6abc583917968879a19a5e67b4db08d506c794 Signed-off-by: Abinaya P <abinayap@codeaurora.org>
* | | | | | | | Merge "input: touchscreen: add support for IT7260 touch controller series"Linux Build Service Account2016-09-12
|\ \ \ \ \ \ \ \
| * | | | | | | | input: touchscreen: add support for IT7260 touch controller seriesSudhakar Manapati2016-09-12
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | Merge "input: touchpanel: enable protocol B for skuf CTP driver"Linux Build Service Account2016-09-12
|\ \ \ \ \ \ \ \
| * | | | | | | | input: touchpanel: enable protocol B for skuf CTP driverBingzhe Cai2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | | Merge "input: touchpanel: Add FB notifications support to GT9xx"Linux Build Service Account2016-09-12
|\| | | | | | | |
| * | | | | | | | input: touchpanel: Add FB notifications support to GT9xxBingzhe Cai2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | | input: touchpanel: Add power control to GT9xx driverBingzhe Cai2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | | input: touchpanel: Add DT support for Goodix touchpanel driverBingzhe Cai2016-09-12
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | Merge "input: synaptics_2.6: add pinctrl support for Synaptics 2.6 driver"Linux Build Service Account2016-09-12
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | input: synaptics_2.6: add pinctrl support for Synaptics 2.6 driverChangmin Liu2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | input: synaptics_dsx_2.6: not reinit when spontaneous reset is detectedXiaonian Wang2016-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | | | input: synaptics_dsx_2.6: correct secure_touch_init functionShantanu Jain2016-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | | | input: ft5x06: check return value of kobject_create_and_addHimanshu Aggarwal2016-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Focaltech driver creates a sysfs under sys/kernel/ts_info to access touch panel details. However, the return value of the API is not checked properly. Check the return value of the API. Also avoid making a duplicate copy of the kobject and clean up the show routine. Change-Id: Ib36e9d7661ee3d2ce7b229d8692e6212e33cbf36 Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
* | | | | | | | input: ft5x06: Add support for clocks for secure touch on 8937 QRDAbinaya P2016-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of a change in the underlying bus driver, the secure touch layer in the input drivers is now required to control directly the clocks which are needed during the touch sessions. The clocks which are associated with the underlying I2C bus are clk_gcc_blsp1_ahb_clk and clk_gcc_blsp1_qup3_i2c_apps_clk. These clocks are turned on/off when the secure touch session is started/ended. Change-Id: If5abca579e264cc7799310628c4e379ac4368e7e Signed-off-by: Abinaya P <abinayap@codeaurora.org>
* | | | | | | | input: ft5x06: create secure touch sysfs filesAbinaya P2016-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch creates two sysfs files for secure touch - secure_touch and secure_touch_enable which will be accessed by secure ui app. We also define the store and show function for these sysfs files. Change-Id: I4bc156de12a8b41c3640c4f1fb2d32ca3d8b5b43 Signed-off-by: Abinaya P <abinayap@codeaurora.org>
* | | | | | | | input: ft5x06: add secure touch support for Focaltech on 8937 QRDAbinaya P2016-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8937 QRD supports Focaltech touch controller. For ft5x06_ts driver to work with the TrustZone secure touch, all the touch interrupts must be forwarded between the Linux Kernel and the TrustZone input driver. Add APIs and configuration to support this. CRs-Fixed: 974549 Change-Id: Ibf873594722c6f299eb4cacf81804cb6548824a4 Signed-off-by: Abinaya P <abinayap@codeaurora.org>
* | | | | | | | input: ft5x06: defer touch resume to workqueuezhaoyuan2016-09-05
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During device resume, the touch resume function is called after display's resume. In this case, the ft5x06's resume function needs to wait for 200ms because of reset requirement. Defer the touch resume to a workqueue to reduce the total device resume time. For this an optional DT property is added to enable this on targets that need this feature. Change-Id: Ib0677ca792aea83ece1caf8a0afff341302747fb Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org> Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
* | | | | | | input: ft5x06_ts: add sysfs to access touch module infoMao Li2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add sysfs under sys/kernel/ts_info to access touch vendor name, model number, firmware version. Change-Id: I531c7fa7db2b7140e5b9c7bb31831d221c734e3e Signed-off-by: Mao Li <maol@codeaurora.org>
* | | | | | | input: ft5x06_ts: remove proximity sensor supportSudhakar Manapati2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove psensor support as the linux/sensors.h file is not yet merged in msm-3.18 kernel. Change-Id: I6d46b35938b7420072f9245ffa27bb59f28d5e03 Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
* | | | | | | input: sensors: change sensors classdev device's parent to input devicesSudhakar Manapati2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sensor HAL takes long time to scan /dev/input to get information from input subsystem. Change sensors sysfs hierarchy to avoid the scanning to reduce sensor HAL initialization time. Change-Id: Ifcd560dacdba2600f2ae5d40a5c3e639ea291274 Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
* | | | | | | input: ft5x06_ts: correct the status of the pocket modeMao Li2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not need to call function to enter pocket mode if the touch panel is already in pocket mode as well as no need to call function to leave pocket mode if it is not in pocket mode. Change-Id: Ic26376bebeba8e7f0dd37ef3bfbbed36c621604b Signed-off-by: Mao Li <maol@codeaurora.org>
* | | | | | | input: ft5x06_ts: fix compiling error in FT CTP driverMao Li2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change dev_debug to dev_dbg to fix compiling error if CONFIG_TOUCHSCREEN_FT5X06_PSENSOR is enabled. Change-Id: Ic228ac8b6dec0bc3e1aaff890dc5b1b7c024bdfc Signed-off-by: Mao Li <maol@codeaurora.org>
* | | | | | | input: ft5x06_ts: do not free input_dev after unregister itMao Li2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once the input device is successfully registered via input_register_device(), it has to be unregistered via input_unregister_device(); input_free_device() should not be called in this case. input_unregister_device() frees the input device, hence the call to input_free_device() is a double free. This is also described in comments of input_unregister_device(). Reorganize the code to avoid a double free. Change-Id: I7abee3f1ad6c73e1c38aa64e627ffd73f6f9d3b2 Signed-off-by: Mao Li <maol@codeaurora.org>
* | | | | | | input: ft5x06_ts: add gesture feature supportMao Li2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Focaltech touch controller FT6436 support new feature Screen-off-Gesture. It is able to turn on the screen by drawing gestures on the touch screen when the screen is during off status. Enable the FT CTP driver to support the screen off gesture recognization. This patch is propagated from msm-3.18 kernel. 'commit 5cc0bff80d65 ("input: ft5x06_ts: add gesture feature support")' Also cleared the following checkpatch warnings. - Missing a blank line after declarations - Missing a blank line after declarations - Comparisons should place the constant on the right side of the test. Change-Id: I77d111d3ef800b636a337221d7e605f746a113dd Signed-off-by: Mao Li <maol@codeaurora.org> Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
* | | | | | | ARM: dts: msm: correct Focaltech CTP irq flag configurationMao Li2016-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed below irq flag issues of Focaltech CTP: Focaltech CTP firmware generates edge interrupt to MSM, but the interrupt type in DTSI is level, which will cause CTP interrupt cannot wake up MSM when system is in deep sleep. Fix this by setting edge irq flag in DTSI. For GPIO irq, the irq flag should be specified in "interrupts" node. Msm_gpio module will only use the lower 8-bit of "interrupts" node and discards the upper bits. If we specify 0x2002 in "interrupts" node, the upper bits(0x2000) is not used by msm_gpio, only lower bits(0x2) is used, that means only lower bits(0x2) should be set in "interrupts" node. "focaltech,irq-gpio" node is used to specify gpio property, rather than irq flag. Remove the irq flag setting in this node. In driver code, specify only "IRQF_ONESHOT". The irq trigger type is specified by DTSI "interrupts" node. See above. Change-Id: I4cd8596fb4538b701317f01a6cafaa771041ffdd Signed-off-by: Mao Li <maol@codeaurora.org>
* | | | | | | Merge "input: synaptics_dsx_2.6: correct sysfs permissions"Linux Build Service Account2016-08-29
|\ \ \ \ \ \ \
| * | | | | | | input: synaptics_dsx_2.6: correct sysfs permissionsAbinaya P2016-08-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set correct permissions for sysfs nodes. 1. Show method of write only sysfs attributes is set to NULL since the attributes are write-only. 2. Store method of read only sysfs attributes is set to NULL since the attributes are read-only. Change-Id: I93b14e22da57a8a47a02080a05a9b8c666970272 Signed-off-by: Abinaya P <abinayap@codeaurora.org>
* | | | | | | | Merge "Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into ↵Linux Build Service Account2016-08-29
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | msm-4.4""
| * | | | | | | | Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4"Trilok Soni2016-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 9d6fd2c3e9fcfb ("Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4"), because it breaks the dump parsing tools due to kernel can be loaded anywhere in the memory now and not fixed at linear mapping. Change-Id: Id416f0a249d803442847d09ac47781147b0d0ee6 Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
* | | | | | | | | Merge "input: synaptics_dsx_2.6: fix issues raised by static analyzer"Linux Build Service Account2016-08-26
|\ \ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | input: synaptics_dsx_2.6: fix issues raised by static analyzerShantanu Jain2016-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issues raised by static analyzer: 1. initialize "retval" before being returned from the driver function. 2. Check return value of the function create_singlethread_workqueue() and return -ENOMEM if it failed. If creation of the workqueue failed, then both queue_work() and queue_delayed_work() calls will later crash, as they expect the workqueue pointer to be a non-NULL value. Also add clean-up code for this. 3. check return value of the snprintf() call as array 'buf' of size 16 may use index value(s) 16...20. CRs-Fixed: 995687 Change-Id: I89d9f7cacbcf23de43a7e96556d1ac65911126d6 Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
| * | | | | | | | input: synaptics_dsx_2.6: fix CTP power issue for QRD8953Mao Li2016-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synaptics touch controller does not go to sleep in suspend because L6 is still enabled. Disable L6 in suspend to ensure CTP go into sleep mode. Change-Id: I40f3f380c1a85c292029d4e22e49bebf25bd198c Signed-off-by: Mao Li <maol@codeaurora.org>
| * | | | | | | | input: synaptics: defer touch resume to workqueue for v2.6 driverzhaoyuan2016-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During device resume, the touch resume function is called after display resume. Touch resume function will take about >200ms. Defer the touch resume function to a workqueue to reduce the total device resume time. An optional DT property is added to enable this on targets that need this feature. This change has been merged. Now, touch driver was updated to V2.6, so, merge this change to V2.6 driver. Change-Id: Ica477f35bd4fda59eb49c9b4f5e88b460366c761 Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
| * | | | | | | | input: synaptics_dsx_2.6: Add support for clocks for secure touchShantanu Jain2016-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because of a change in the underlying bus driver, the secure touch layer in the input drivers is now required to control directly the clocks which are needed during the touch sessions. The clocks which are associated with the underlying I2C bus are clk_gcc_blsp1_ahb_clk and clk_gcc_blsp1_qup3_i2c_apps_clk. These clocks are turned on/off when the secure touch session is started/ended. CRs-Fixed: 990820 Change-Id: Ie2f6f5b736b27792e6e4dc2c39064e0ebdc03d7b Signed-off-by: Shantanu Jain <shjain@codeaurora.org> Signed-off-by: Abinaya P <abinayap@codeaurora.org>
| * | | | | | | | input: synaptics_dsx_2.6: remove fake touch pointsMao Li2016-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update F12 touch report function with adding input_sync to correct the pointer reporting status. Change-Id: Iefe24525a9551736a6044697b447a25e2c5c65ca Signed-off-by: Mao Li <maol@codeaurora.org>
| * | | | | | | | input: synaptics_dsx_2.6: creation of secure touch sysfs ifilesShantanu Jain2016-08-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch creates two sysfs files for secure touch - secure_touch and secure_touch_enable, which will be accessed by secure UI app. We also define the store and show function for these sysfs files. Change-Id: Id43118120d4a1f0682904f48b3584d3ba62ef1dd Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
| * | | | | | | | input: synaptics_dsx_2.6: add secure touch support for Synaptics V2.6Shantanu Jain2016-08-24
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8953 QRD supports Synaptics touch controller. For synaptics_dsx_2.6 driver to work with the TrustZone secure touch, all the touch interrupts must be forwarded between the Linux Kernel and the TrustZone input driver. Add APIs and configuration to support this. Change-Id: I47520f9ba91b7645dff2c11b4c58a0b7aeed2765 Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
* | | | | | | | Merge "input: ft5x06_ts: add proximity feature support"Linux Build Service Account2016-08-26
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | input: ft5x06_ts: add proximity feature supportMao Li2016-08-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Focaltech's CTP FT6436 is able to behave like a proximity sensor. Enable the driver support this new feature. Also cleared the chekpatch warning on 3.18 kernel. Change-Id: I7a6ec3a387536c512637b0bd8dab95e7cceca212 Signed-off-by: Mao Li <maol@codeaurora.org> Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org> Signed-off-by: Abinaya P <abinayap@codeaurora.org>
| * | | | | | | input: ft5x06_ts: add NULL pointer checkSudhakar Manapati2016-08-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add null pointer exception check for pointers which may be NULL after memory allocation failure and may be deferenced. This patch is propagated from msm-3.18 kernel. 'commit 5c6aa1bb97a3 ("input: ft5x06_ts: add NULL pointer check")' Change-Id: Ied34d548bff27f8f6da9f4c81896e4505cdce218 Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org> Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
| * | | | | | | input: ft5x06_ts: pinctrl and gpio config in suspend/resume pathSudhakar Manapati2016-08-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When device switch to suspend state the gpio and pinctrl need to be configured properly to prevent the touch controller current leakage in device suspend state. The pinctrl must be configure first before the gpio configuration. Select the pinctrl sleep state and after that in gpio configuration part free both IRQ and reset gpio, and also set direction of reset gpio to be input. If the gpio and pinctrl is not in proper state the touch controller will not switch to the deep sleep state and it will start consume current during the device suspend state. To prevent this leakage current issue, pinctrl and gpio must be configured properly. This patch is propagated from msm-3.18 kernel. 'commit 494eae39f2a4 ("input: ft5x06_ts: pinctrl and gpio config in suspend/resume path")' Also cleared checkpatch errors on msm-3.18 kernel. Change-Id: I0ec72bbbf12320ad22608522d1250614c6686fe3 Signed-off-by: Sarada Prasanna Garnayak <c_sgarna@codeaurora.org> Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
| * | | | | | | input: focaltech: release pinctrl resources on probe failureShantanu Jain2016-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | devm_pinctrl_get() does not release the ownership of mux function of pins in the associated pin-group whenever a failure occurs in driver probe routine. i.e struct pin_desc's mux_owner field is still marked as being in use after a failure occurs in probe. As a result of this, if another driver tries to acquire the ownership of same pin, it gets an error while applying that setting. To fix this, explicitly release the mux function ownership of the the pin, by adding a new pin-group in pinctrl DT and a new pinctrl state in touch device's DT node. This new pin-group does not have a function setting (qcom,pin-func property). This new state is explicitly activated during a probe failure and driver remove routine to release the mux function ownership. The patch also reorganizes the pinctrl related code in driver. This patch is propagated from msm-3.18 kernel. 'commit f09a0560dde9 ("input: focaltech: release pinctrl resources on probe failure")' Change-Id: I16a97fefc64dd171deb800b481aa74a797c9ad55 Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
| * | | | | | | input: ft5x06_ts: fix the Focaltech CTP current leakage issueMao Li2016-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Focaltech touch controller does not go to sleep in suspend because the pinctrl operation inadvertently resets the touch controller. Remove the pinctrl operation in suspend and resume callback to prevent this spurious reset. This patch is propagated from msm-3.18 kernel. 'commit 7e2ea02b16de ("input: ft5x06_ts: fix the Focaltech CTP current leakage issue")' CRs-Fixed: 1046961 Change-Id: Ifa02c0287195d7ce55fb2d8ac49ec1c8ae5baec9 Signed-off-by: Mao Li <maol@codeaurora.org>