dm: pinctrl: Revert "pinctrl: probe pinctrl drivers during post-bind"
authorSimon Glass <sjg@chromium.org>
Wed, 21 Dec 2022 14:27:39 +0000 (07:27 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 18 Jan 2023 18:49:13 +0000 (11:49 -0700)
This breaks chromebook_coral and it is also not how things should work. If
a board needs to bind GPIOs as part of a pinctrl driver this can be done
during the bind step, if needed.

We cannot probe pinctrl devices when binding as a rule, since it cannot be
supported on some platforms.

The bind and probe steps are separate in U-Boot and they should remain
separate.

This reverts commit f9ec791b5e24378b71590877499f8683d5f54dac.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-uclass.c

index ce2d5dd..a1b85ca 100644 (file)
@@ -403,13 +403,6 @@ static int __maybe_unused pinctrl_post_bind(struct udevice *dev)
 {
        const struct pinctrl_ops *ops = pinctrl_get_ops(dev);
 
-       /*
-        * Make sure that the pinctrl driver gets probed after binding
-        * as some pinctrl drivers also register the GPIO driver during
-        * probe, and if they are not probed GPIO-s are not registered.
-        */
-       dev_or_flags(dev, DM_FLAG_PROBE_AFTER_BIND);
-
        if (!ops) {
                dev_dbg(dev, "ops is not set.  Do not bind.\n");
                return -EINVAL;