[PATCH] gpio: Get rid of gpio_hog_probe_all()

Marek Vasut marex at denx.de
Wed Sep 21 02:53:28 CEST 2022


On 9/20/22 14:26, Quentin Schulz wrote:
> Hi all,

Hi,

> Just so there's a written summary on the ML rather than only on IRC.

Thanks

[...]

> Something like:
> 
> diff --git a/drivers/core/device.c b/drivers/core/device.c
> index d9ce546c0c..103ec47b88 100644
> --- a/drivers/core/device.c
> +++ b/drivers/core/device.c
> @@ -174,6 +174,10 @@ static int device_bind_common(struct udevice 
> *parent, const struct driver *drv,
>           if (ret)
>               goto fail_child_post_bind;
>       }
> +
> +    if (ofnode_pre_reloc(node))
> +        dev_or_flags(dev, DM_FLAG_PRE_RELOC);
> +
>       if (uc->uc_drv->post_bind) {
>           ret = uc->uc_drv->post_bind(dev);
>           if (ret)
> 
> but with the knowledge of pre_reloc_only flag I guess? I have no 
> experience in the DM code so maybe someone will have a better idea/quick 
> implementation, so that this patch can actually be merged without 
> breaking stuff :)

Can you send the above as an actual proper patch and CC Simon and me 
please ? I think this is actually even a bugfix for DM core.

The rest is clear, thanks .


More information about the U-Boot mailing list