diff options
| author | Hans Zhang <[email protected]> | 2025-04-19 13:30:58 +0000 |
|---|---|---|
| committer | Manivannan Sadhasivam <[email protected]> | 2025-04-23 07:11:32 +0000 |
| commit | 8805f32a96d3b97cef07999fa6f52112678f7e65 (patch) | |
| tree | 2ab766092a15d758fcad3680c876284bce24f0dc /drivers/pci/controller/pci-host-common.h | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-8805f32a96d3b97cef07999fa6f52112678f7e65.tar.gz kernel-8805f32a96d3b97cef07999fa6f52112678f7e65.zip | |
PCI: cadence: Fix runtime atomic count underflow
If the call to pci_host_probe() in cdns_pcie_host_setup() fails, PM
runtime count is decremented in the error path using pm_runtime_put_sync().
But the runtime count is not incremented by this driver, but only by the
callers (cdns_plat_pcie_probe/j721e_pcie_probe). And the callers also
decrement the runtime PM count in their error path. So this leads to the
below warning from the PM core:
"runtime PM usage count underflow!"
So fix it by getting rid of pm_runtime_put_sync() in the error path and
directly return the errno.
Fixes: 49e427e6bdd1 ("Merge branch 'pci/host-probe-refactor'")
Signed-off-by: Hans Zhang <[email protected]>
Signed-off-by: Manivannan Sadhasivam <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/pci-host-common.h')
0 files changed, 0 insertions, 0 deletions
