Re: [PATCH] mfd: qcom-pm8xxx: fix OF populate on driver rebind
From: Dmitry Baryshkov
Date: Sun Dec 21 2025 - 00:01:22 EST
On Fri, Dec 19, 2025 at 12:09:47PM +0100, Johan Hovold 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>
> ---
> drivers/mfd/qcom-pm8xxx.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry