diff mbox series

Input: st1232 - prefer asynchronous probing

Message ID 20211007111217.1935858-1-john@metanate.com (mailing list archive)
State Accepted
Commit b415ed4f49b90655659479fa7c5ddaffe88e41b9
Headers show
Series Input: st1232 - prefer asynchronous probing | expand

Commit Message

John Keeping Oct. 7, 2021, 11:12 a.m. UTC
The device may take up to 100ms to become responsive during probe, so
prefer asynchronous probing to avoid delaying the rest of the system.

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: John Keeping <john@metanate.com>
---
As suggested in [1]

[1] https://lore.kernel.org/all/YV3mNMnWmUsasZ2h@google.com/

 drivers/input/touchscreen/st1232.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Dmitry Torokhov Oct. 12, 2021, 1:31 a.m. UTC | #1
On Thu, Oct 07, 2021 at 12:12:16PM +0100, John Keeping wrote:
> The device may take up to 100ms to become responsive during probe, so
> prefer asynchronous probing to avoid delaying the rest of the system.
> 
> Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Signed-off-by: John Keeping <john@metanate.com>

Applied, thank you.
diff mbox series

Patch

diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index 6abae665ca71..45017ed94833 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -389,6 +389,7 @@  static struct i2c_driver st1232_ts_driver = {
 	.driver = {
 		.name	= ST1232_TS_NAME,
 		.of_match_table = st1232_ts_dt_ids,
+		.probe_type	= PROBE_PREFER_ASYNCHRONOUS,
 		.pm	= &st1232_ts_pm_ops,
 	},
 };