diff options
author | Sanchayan Maity <maitysanchayan@gmail.com> | 2015-12-17 11:08:46 +0530 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-12-24 01:27:22 +0100 |
commit | 5b869a4c5b92ab804cb36583a0a89578bab7c482 (patch) | |
tree | bc9384c7e8a1fc687ee824dbca4a93355a5a1fb2 /drivers/input/touchscreen/fusion_F0710A.h | |
parent | 28644ba4d200ec8f5535e860356e75d0bf5e1899 (diff) |
touchscreen: fusion_F0710A: Reset controller if clear interrupt operation fails
Add support for resetting the controller using the gpio reset pin
if interrupt could not be cleared. If clearing the interrupt fails,
the interrupt line stays high and no further interrupts are generated
resulting in a non functioning touchscreen until next reboot, when we
reset the controller again in probe.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
(cherry picked from commit 5b64e07bc32581ee7e8c12125a0d12209e42923c)
(cherry picked from commit 967986fe0f8d685da5108868b60004e51eda89b2)
Diffstat (limited to 'drivers/input/touchscreen/fusion_F0710A.h')
-rw-r--r-- | drivers/input/touchscreen/fusion_F0710A.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/fusion_F0710A.h b/drivers/input/touchscreen/fusion_F0710A.h index 85f8210345a9..3e5af9e72b78 100644 --- a/drivers/input/touchscreen/fusion_F0710A.h +++ b/drivers/input/touchscreen/fusion_F0710A.h @@ -71,6 +71,7 @@ struct fusion_F0710A_data { struct i2c_client *client; struct workqueue_struct *workq; struct input_dev *input; + int gpio_reset; u16 x1; u16 y1; u8 z1; |