]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: st1232 - prefer asynchronous probing
authorJohn Keeping <john@metanate.com>
Tue, 12 Oct 2021 01:31:40 +0000 (18:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Oct 2021 01:32:56 +0000 (18:32 -0700)
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>
Link: https://lore.kernel.org/r/20211007111217.1935858-1-john@metanate.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c

index 9d1dea6996a2252f5f02e731d84d530e100a4bac..e38ba3e4f1837793c2d6d0c8dd6729011d08fcf9 100644 (file)
@@ -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,
        },
 };