Input: atmel_mxt_ts - allow reset GPIO to sleep

commit c7866ee0a9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Marek Vasut
2025-10-05 04:33:10 +02:00
committed by Greg Kroah-Hartman
parent f3f59bab68
commit f652c7036b

View File

@@ -3317,7 +3317,7 @@ static int mxt_probe(struct i2c_client *client)
if (data->reset_gpio) { if (data->reset_gpio) {
/* Wait a while and then de-assert the RESET GPIO line */ /* Wait a while and then de-assert the RESET GPIO line */
msleep(MXT_RESET_GPIO_TIME); msleep(MXT_RESET_GPIO_TIME);
gpiod_set_value(data->reset_gpio, 0); gpiod_set_value_cansleep(data->reset_gpio, 0);
msleep(MXT_RESET_INVALID_CHG); msleep(MXT_RESET_INVALID_CHG);
} }