aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-qcom-common.c
diff options
context:
space:
mode:
authorAlex Williamson <[email protected]>2025-04-22 23:05:32 +0000
committerBjorn Helgaas <[email protected]>2025-04-23 21:06:45 +0000
commit0a0829b1fd76cb6110cc049a60e634a51969e488 (patch)
tree56aca90f89c05a1f9d4677972152f2475f6bcdb0 /drivers/pci/controller/dwc/pcie-qcom-common.c
parentPM: runtime: Define pm_runtime_put cleanup helper (diff)
downloadkernel-0a0829b1fd76cb6110cc049a60e634a51969e488.tar.gz
kernel-0a0829b1fd76cb6110cc049a60e634a51969e488.zip
PCI: Increment PM usage counter when probing reset methods
We can get different results probing reset methods for a device depending on its power state. For example, reading the PM control register of a device in D3cold will always indicate NoSoftRst+ because we get ~0 data when the config read fails on PCI, preventing us from correctly probing PM reset support. Increment the PM usage counter before any probes and use the cleanup __free facility to automatically drop the usage counter out of scope. Signed-off-by: Alex Williamson <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions