Re: [PATCH] mfd: omap-usb-host: fix OF populate on driver rebind

From: Andreas Kemnade
Date: Mon Dec 29 2025 - 10:04:48 EST


On Fri, 19 Dec 2025 12:07:14 +0100
Johan Hovold <johan@xxxxxxxxxx> wrote:

> Since commit c6e126de43e7 ("of: Keep track of populated platform
> devices") child devices will not be created by of_platform_populate()
> if the devices had previously been deregistered individually so that the
> OF_POPULATED flag is still set in the corresponding OF nodes.
>
> Switch to using of_platform_depopulate() instead of open coding so that
> the child devices are created if the driver is rebound.
>
> Fixes: c6e126de43e7 ("of: Keep track of populated platform devices")
> Cc: stable@xxxxxxxxxxxxxxx # 3.16
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>