mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Input: stmfts - use async probe & suspend/resume to avoid 2s delay
Executing stmfts_power_on() function lasts over 2 seconds, what significantly slows down the boot and resume processes if driver is compiled in. Avoid this delay by forcing this driver to be probed and suspended/resumed asynchronously. Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
4621c96604
commit
1d96000360
1 changed files with 2 additions and 0 deletions
|
|
@ -730,6 +730,7 @@ static int stmfts_probe(struct i2c_client *client,
|
|||
return err;
|
||||
|
||||
pm_runtime_enable(&client->dev);
|
||||
device_enable_async_suspend(&client->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -805,6 +806,7 @@ static struct i2c_driver stmfts_driver = {
|
|||
.name = STMFTS_DEV_NAME,
|
||||
.of_match_table = of_match_ptr(stmfts_of_match),
|
||||
.pm = &stmfts_pm_ops,
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
},
|
||||
.probe = stmfts_probe,
|
||||
.remove = stmfts_remove,
|
||||
|
|
|
|||
Loading…
Reference in a new issue