summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2018-07-09 19:27:44 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:32:36 +0800
commit5773b61e2f2f74b324170618218b9f2ae68a6e94 (patch)
treecb40bef739b4bd2f0571db6c85bd0d087ba24f5e /drivers/input/touchscreen
parent65087ccb8064b43630becfe1d7c65be57afb1311 (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>
Diffstat (limited to 'drivers/input/touchscreen')
-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 b05e561cb678..415ea943b795 100644
--- a/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c
+++ b/drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_i2c.c
@@ -1618,18 +1618,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