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 de3e107ab8d216aef4d123855110f552dc4ef7da..5cf5a119a6adb85d8393d047531a8d8a01e1c36e 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);