Skip to content

Commit 5f82c1e

Browse files
committed
Input: elan_i2c - do not leave interrupt disabled on suspend failure
Make sure interrupts are not left disabled when we fail to suspend the touch controller. Fixes: 6696777 ("Input: add driver for Elan I2C/SMbus touchpad") Link: https://lore.kernel.org/r/ZmKiiL-1wzKrhqBj@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 7c45951 commit 5f82c1e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/input/mouse/elan_i2c_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,8 @@ static int elan_suspend(struct device *dev)
13561356
}
13571357

13581358
err:
1359+
if (ret)
1360+
enable_irq(client->irq);
13591361
mutex_unlock(&data->sysfs_mutex);
13601362
return ret;
13611363
}

0 commit comments

Comments
 (0)