[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220826074430.1333272-1-mani@chromium.org>
Date: Fri, 26 Aug 2022 17:44:30 +1000
From: Mani Milani <mani@...omium.org>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Mani Milani <mani@...omium.org>, Jean Delvare <jdelvare@...e.com>,
linux-i2c@...r.kernel.org
Subject: [PATCH] i2c: i801: Prefer async probe
This i801 driver probe can take more than ~190ms in some devices, since
the "i2c_register_spd()" call was added inside
"i801_probe_optional_slaves()".
Prefer async probe so that other drivers can be probed and boot can
continue in parallel while this driver loads, to reduce boot time. There is
no reason to block other drivers from probing while this driver is
loading.
Signed-off-by: Mani Milani <mani@...omium.org>
---
drivers/i2c/busses/i2c-i801.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index a176296f4fff..e06509edc5f3 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1838,6 +1838,7 @@ static struct pci_driver i801_driver = {
.shutdown = i801_shutdown,
.driver = {
.pm = &i801_pm_ops,
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
},
};
--
2.37.2.672.g94769d06f0-goog
Powered by blists - more mailing lists