i2c: owl: Enable asynchronous probing
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>
Thu, 8 Oct 2020 21:44:41 +0000 (00:44 +0300)
committerWolfram Sang <wsa@kernel.org>
Tue, 3 Nov 2020 20:57:11 +0000 (21:57 +0100)
Speed up the boot process by using the asynchronous probing feature
supported by the recent kernels.

For SBCs based on the Actions Semi S500 SoC, the overall boot time is
expected to be reduced by 200-300 ms.

Suggested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-owl.c

index de3e107..5cf5a11 100644 (file)
@@ -519,6 +519,7 @@ static struct platform_driver owl_i2c_driver = {
        .driver         = {
                .name   = "owl-i2c",
                .of_match_table = of_match_ptr(owl_i2c_of_match),
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
 };
 module_platform_driver(owl_i2c_driver);