Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: atmel_mxt_ts - allow reset GPIO to sleep

The reset GPIO is not toggled in any critical section where it couldn't
sleep, allow the reset GPIO to sleep. This allows the driver to operate
reset GPIOs connected to I2C GPIO expanders.

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Link: https://lore.kernel.org/r/20251005023335.166483-1-marek.vasut@mailbox.org
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Marek Vasut and committed by
Dmitry Torokhov
c7866ee0 d655a684

+1 -1
+1 -1
drivers/input/touchscreen/atmel_mxt_ts.c
··· 3320 3320 if (data->reset_gpio) { 3321 3321 /* Wait a while and then de-assert the RESET GPIO line */ 3322 3322 msleep(MXT_RESET_GPIO_TIME); 3323 - gpiod_set_value(data->reset_gpio, 0); 3323 + gpiod_set_value_cansleep(data->reset_gpio, 0); 3324 3324 msleep(MXT_RESET_INVALID_CHG); 3325 3325 } 3326 3326