* [PATCH] Input: atmel_mxt_ts - allow reset GPIO to sleep
@ 2025-10-05 2:33 Marek Vasut
2025-10-10 4:32 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2025-10-05 2:33 UTC (permalink / raw)
To: linux-input; +Cc: Marek Vasut, Dmitry Torokhov, Nick Dyer
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>
---
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Nick Dyer <nick@shmanahar.org>
Cc: linux-input@vger.kernel.org
---
drivers/input/touchscreen/atmel_mxt_ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
index fc624101147ec..dd0544cc1bc1a 100644
--- a/drivers/input/touchscreen/atmel_mxt_ts.c
+++ b/drivers/input/touchscreen/atmel_mxt_ts.c
@@ -3320,7 +3320,7 @@ static int mxt_probe(struct i2c_client *client)
if (data->reset_gpio) {
/* Wait a while and then de-assert the RESET GPIO line */
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);
}
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: atmel_mxt_ts - allow reset GPIO to sleep
2025-10-05 2:33 [PATCH] Input: atmel_mxt_ts - allow reset GPIO to sleep Marek Vasut
@ 2025-10-10 4:32 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2025-10-10 4:32 UTC (permalink / raw)
To: Marek Vasut; +Cc: linux-input, Nick Dyer
On Sun, Oct 05, 2025 at 04:33:10AM +0200, Marek Vasut wrote:
> 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>
Tagged for stable and applied, thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-10 4:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-05 2:33 [PATCH] Input: atmel_mxt_ts - allow reset GPIO to sleep Marek Vasut
2025-10-10 4:32 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).