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

From: Geert Uytterhoeven

Date: Mon Nov 30 2026 - 04:59:52 EST


Hi Mani,

On Mon, Nov 30, 2026, at 08:18, Manivannan Sadhasivam wrote:
> 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.

You are talking about powering the domain, through the

generic_pm_domain.power_o{ff,n})(struct generic_pm_domain *domain)

callbacks.

Claudiu is talking about starting the device, through the

generic_pm_domain.gpd_dev_ops.st{art,op}(struct device *dev)

callbacks, which are called from Runtime PM.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds