Skip to content

Commit c7866ee

Browse files
Marek Vasutdtor
authored andcommitted
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>
1 parent d655a68 commit c7866ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/atmel_mxt_ts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3320,7 +3320,7 @@ static int mxt_probe(struct i2c_client *client)
33203320
if (data->reset_gpio) {
33213321
/* Wait a while and then de-assert the RESET GPIO line */
33223322
msleep(MXT_RESET_GPIO_TIME);
3323-
gpiod_set_value(data->reset_gpio, 0);
3323+
gpiod_set_value_cansleep(data->reset_gpio, 0);
33243324
msleep(MXT_RESET_INVALID_CHG);
33253325
}
33263326

0 commit comments

Comments
 (0)