From 393387820bae03c86420dbc33c6984cf7732c561 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Wed, 9 Aug 2023 10:45:19 +0200 Subject: [PATCH] arm64: rockchip: rk_i2c: Probe again at ORDER_LATE The gic driver is also probed at this pass and depending on the order of the nodes in the dts rk_i2c can be probed first and will fail, this is the case for the rk3328 SoC. The PMIC drivers are also probed at this pass but on the iicbus which is created in rk_i2c so there is no order conflict here. Fixes: ddefad7c4f48 ("arm64: rockchip: Tweak i2c, pmic and iodomain order") Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/arm64/rockchip/rk_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm64/rockchip/rk_i2c.c b/sys/arm64/rockchip/rk_i2c.c index b9f0fd592122..e3824ba843fe 100644 --- a/sys/arm64/rockchip/rk_i2c.c +++ b/sys/arm64/rockchip/rk_i2c.c @@ -727,8 +727,8 @@ static driver_t rk_i2c_driver = { }; EARLY_DRIVER_MODULE(rk_i2c, simplebus, rk_i2c_driver, 0, 0, - BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE); + BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); EARLY_DRIVER_MODULE(ofw_iicbus, rk_i2c, ofw_iicbus_driver, - 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE); + 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); MODULE_DEPEND(rk_i2c, iicbus, 1, 1, 1); MODULE_VERSION(rk_i2c, 1);