From: Igor Velkov The rk8xx MFD core registers the pin controller of the RK805, RK806 and RK816 as a platform device named "rk805-pinctrl", but the driver has neither a MODULE_ALIAS nor a platform_device_id table. Built as a module it is never loaded on its own, and everything that uses the PMIC GPIOs waits for it: on the Pine64 ROCK64 the gpio-leds device with both LEDs stays in deferred probe. The other rk8xx cell drivers (rk805-pwrkey, rk808-regulator, rtc-rk808, clk-rk808) carry such an alias. Add one here as well. Fixes: ea479996c79b ("pinctrl: Add pinctrl driver for the RK805 PMIC") Cc: stable@vger.kernel.org Signed-off-by: Igor Velkov --- Tested on a Pine64 ROCK64 (RK805) with v7.3.4 and CONFIG_PINCTRL_RK805=m: without the alias the module is not loaded and both LEDs stay in deferred probe over three boots; with it the module loads at boot, both LEDs register and the deferred list is empty. --- drivers/pinctrl/pinctrl-rk805.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-rk805.c b/drivers/pinctrl/pinctrl-rk805.c index 22f576337faa..694a47d95e17 100644 --- a/drivers/pinctrl/pinctrl-rk805.c +++ b/drivers/pinctrl/pinctrl-rk805.c @@ -700,3 +700,4 @@ MODULE_DESCRIPTION("RK805 pin control and GPIO driver"); MODULE_AUTHOR("Xu Shengfei "); MODULE_AUTHOR("Joseph Chen "); MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:rk805-pinctrl"); --- base-commit: 4bc88b10a232db13219667e69616f6d2250d5e5f change-id: 20261111-rk805-pinctrl-alias-7d08a4266cba Best regards, -- Igor Velkov