]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: probe pinctrl drivers during post-bind
authorRobert Marko <robert.marko@sartura.hr>
Fri, 6 May 2022 18:01:39 +0000 (20:01 +0200)
committerStefan Roese <sr@denx.de>
Tue, 17 May 2022 04:44:06 +0000 (06:44 +0200)
commitda77ec581551a1f3cd03b6079be50daaab230756
tree4162cf0f8322889c9f287f2415569032ab952af4
parent609b6a03df113706ee95d5665e533318d64f780e
pinctrl: probe pinctrl drivers during post-bind

Currently, pinctrl drivers only get probed if pinconf is actually being
used, however on SoC-s like Armada 3720 pinctrl driver is a also the GPIO
driver.

So, if the pinctrl driver doesn't get probed GPIO-s won't get registered
and thus they cannot be used.

This is a problem on the Methode eDPU as it just uses SB pins as GPIO-s
and without them being registered networking won't work as it only has
one SFP slot and the TX disable GPIO is on the SB controller.

So, probe the pinctrl drivers using DM_FLAG_PROBE_AFTER_BIND like LED
uclass does.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Reviewed-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pinctrl/pinctrl-uclass.c