Re: [PATCH v7 02/14] PCI: rzg3s-host: Fix runtime PM handling in the NOIRQ suspend/resume phase

From: Manivannan Sadhasivam

Date: Mon Nov 30 2026 - 02:19:02 EST


On Thu, Nov 26, 2026 at 07:04:28PM +0200, Claudiu Beznea wrote:

[...]

> Genpd should also enable the power domain before this driver's probe().
> Genpd calls genpd_power_on() through platform_probe() but the clock power
> domains implemented for the devices that uses this driver [1], [2], don't
> implement genpd .power_on()/.power_off().
>
> On platform drivers probe:
>
> platform_probe() ->
> dev_pm_domain_attach() ->
> genpd_dev_pm_attach() ->
> __genpd_dev_pm_attach(dev, dev, 0, 1, true) ->
> if (power_on) {
> genpd_lock(pd);
> ret = genpd_power_on(pd, dev, 0);
> genpd_unlock(pd);
> }
>
>
> pm_runtime_resume_and_get() calls genpd_start_dev(), which is, for [1] and [2]:
>
> genpd->dev_ops.start = pm_clk_resume;
>
> This enable the clocks for us and is what genpd calls on its own though resume.
>

Ah, this looks like a broken design. A genpd power domain must power on all
resources required for the consumers to work in its power_on callback.

Anyhow, it is not my problem to fix it. Atleast you should add a comment above
the probe's pm_runtime_resume_and_get() call.

- Mani

--
மணிவண்ணன் சதாசிவம்