Hi Ulf, On Wed, 2 Dec 2026 17:09:44 +0100, Ulf Hansson wrote: > > + device_link_add(dev, &pd->dev, DL_FLAG_AUTOREMOVE_CONSUMER); > > To properly track the consumer, we need to use base_dev instead of > dev, as dev may be the virtual device that is created when attaching > by genpd_dev_pm_attach_by_id(). base_dev makes sense, but the consumer is then unbound from device_del(&pd->dev) in of_genpd_del_provider(), under gpd_list_lock. A consumer that is itself a genpd provider takes that lock again in its remove, e.g. imx8m_blk_ctrl_remove() (disp_blk_ctrl consumes pgc_dispmix on imx8mm), so unbinding imx-pgc deadlocks. The return value of device_link_add() is also ignored. -- Troy Mitchell