]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: a37xx: pinctrl: probe after binding
authorRobert Marko <robert.marko@sartura.hr>
Tue, 17 Jan 2023 14:08:15 +0000 (15:08 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 1 Mar 2023 18:22:27 +0000 (11:22 -0700)
commit1de76a4535a2d617adeb05070d265e2826af3ad6
tree9686990ccc34abe578cf3a780eb3d83750703332
parent3cbaa4e1efa70b463a0057920e145f5e52784b9a
arm64: a37xx: pinctrl: probe after binding

Currently, pinctrl drivers are getting probed during post-bind, however
that is being reverted, and on A37XX pinctrl driver is the one that
registers the GPIO driver during the probe.

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, lets just add a flag only to A37XX driver to probe after binding
in order for the GPIO driver to always get registered.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c