Re: [PATCH] Input: stmfts - force async driver probe to avoid 2s delay on boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marek,

On Wed, Mar 07, 2018 at 12:56:04PM +0100, Marek Szyprowski wrote:
> Executing stmfts_power_on() function lasts over 2 seconds, what

I suppose that is because of calibration that is done as part of
powering on?

> significantly slows down the boot process if driver is compiled in.
> Avoid this delay by forcing this driver to be probed asynchronously.

I do not have an objection for making the probe asynchronous, but don't
you have similar issue on resume?

> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
> ---
>  drivers/input/touchscreen/stmfts.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/input/touchscreen/stmfts.c b/drivers/input/touchscreen/stmfts.c
> index 025bae3853cc..964f1f43f9ba 100644
> --- a/drivers/input/touchscreen/stmfts.c
> +++ b/drivers/input/touchscreen/stmfts.c
> @@ -812,6 +812,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,
> -- 
> 2.15.0
> 

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux