summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2018-07-09 19:27:44 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 16:29:01 +0800
commit693d3f267cf2802ec57ba1ed584bd651c5df342e (patch)
treea7bbc11d1e1ed0e22aa71ed3c2e3b7275fd453a4 /drivers/input
parent1ab24993c6d4ed80de224d270f442f20d2c03394 (diff)
MLK-18816-2 input/touch: do not clear touch interrupt when enable irq
On imx8mscale-evk baord, if I2C bus is configed pull-up, then once send the i2c command to clear touch interrupt during the touch initialization, touch will keep SDA line in low level, block the i2c bus. If config the I2C bus pull-down, then this issue gone. Due to it is not reasonable to set the I2c bus to pull-down for other i2c slave device, this patch work as a workaround, just remove this i2c command, do not clear the touch interrupt, test that touch can also work well after the initialization. Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c b/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c
index 764a5a2b3c7d..c82aa111d183 100644
--- a/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c
+++ b/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c
@@ -1628,18 +1628,8 @@ static int synaptics_rmi4_irq_enable(struct synaptics_rmi4_data *rmi4_data,
bool enable)
{
int retval = 0;
- unsigned char intr_status[MAX_INTR_REGISTERS];
if (enable) {
-
- /* Clear interrupts first */
- retval = synaptics_rmi4_i2c_read(rmi4_data,
- rmi4_data->f01_data_base_addr + 1,
- intr_status,
- rmi4_data->num_of_intr_regs);
- if (retval < 0)
- return retval;
-
/* set up irq */
if (!rmi4_data->irq_enabled) {
#ifdef CONFIG_OF_TOUCH