[PATCH] Input: stmfts - restore touch after system resume with the device open
Dmitry Torokhov
dmitry.torokhov at gmail.com
Mon Nov 23 10:17:16 PST 2026
On Mon, Nov 23, 2026 at 05:13:41PM +0100, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david at ixit.cz>
>
> stmfts_resume() only calls stmfts_power_on(), which re-initialises the
> controller and deliberately leaves it in SLEEP_IN, assuming nobody uses
> the touchscreen yet. That assumption does not hold for a system resume:
> userspace keeps the evdev node open, runtime PM still considers the
> device active and stmfts_input_open() never runs again, so the
> controller stays asleep with scanning off. On FTS5 the controller
> interrupt enable command is part of the runtime resume sequence, so the
> result is a completely dead touchscreen until the input device is
> reopened.
>
> Factor the scan enable part of stmfts_input_open() into
> stmfts_start_scan() and, when the input device is open, replay the
> runtime resume sequence and re-enable scanning from stmfts_resume().
>
> Fixes: 78bcac7b2ae1 ("Input: add support for the STMicroelectronics FingerTip touchscreen")
> Signed-off-by: David Heidelberg <david at ixit.cz>
Applied, thank you.
--
Dmitry
More information about the linux-arm-kernel
mailing list