[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3c7da784-e58e-4acd-a37f-93020796c0e7@foss.st.com>
Date: Wed, 4 Jun 2025 18:35:49 +0200
From: Christian Bruel <christian.bruel@...s.st.com>
To: Manivannan Sadhasivam <mani@...nel.org>
CC: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
<lpieralisi@...nel.org>, <kw@...ux.com>, <robh@...nel.org>,
<bhelgaas@...gle.com>, <krzk+dt@...nel.org>, <conor+dt@...nel.org>,
<mcoquelin.stm32@...il.com>, <alexandre.torgue@...s.st.com>,
<p.zabel@...gutronix.de>, <thippeswamy.havalige@....com>,
<shradha.t@...sung.com>, <quic_schintav@...cinc.com>,
<cassel@...nel.org>, <johan+linaro@...nel.org>,
<linux-pci@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>,
<linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v8 2/9] PCI: stm32: Add PCIe host support for STM32MP25
>>>>>> +
>>>>>> + ret = devm_pm_runtime_enable(dev);
>>>>>> + if (ret < 0) {
>>>>>> + dev_err(dev, "Failed to enable runtime PM %d\n", ret);
>>>>>> + return ret;
>>>>>> + }
>>>>>> +
>>>>>> + pm_runtime_get_noresume(dev);
>>>>>> +
>>>>>
>>>>> I know that a lot of the controller drivers do this for no obvious reason. But
>>>>> in this case, I believe you want to enable power domain or genpd before
>>>>> registering the host bridge. Is that right?
>>>>
...
Runtime PM was broken in version 6.6 without pm_runtime_get_noresume()
On the 6.15 baseline, without this call, pm_genpd_summary reports the
correct information: active when a device is plugged, and suspended when not
So, I can proceed without pm_runtime_get_noresume(), as you mentioned in
your review.
I suspect the other platforms might have this call for the same
historical reasons.
thank you,
Christian
Powered by blists - more mailing lists