diff options
author | Raag Jadav <[email protected]> | 2024-02-27 11:56:48 +0530 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-02-29 15:59:03 -0600 |
commit | fa885b06ec7ee07c2498ad0ce4e0717c3b7dd487 (patch) | |
tree | 0ee3c8fecef94d527bbc0f53392fc17c0e068c05 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cb98555fcd8eee98c30165537c7e394f3a66e809 (diff) |
PCI/PM: Allow runtime PM with no PM callbacks at all
Commit c5eb1190074c ("PCI / PM: Allow runtime PM without callback
functions") eliminated the need for PM callbacks in
pci_pm_runtime_suspend() and pci_pm_runtime_resume(), but
didn't do the same for pci_pm_runtime_idle().
Therefore, runtime suspend worked as long as the driver implemented at
least one PM callback. But if the driver doesn't implement any PM
callbacks at all (driver->pm is NULL), pci_pm_runtime_idle() returned
-ENOSYS, which prevented runtime suspend.
Modify pci_pm_runtime_idle() to allow PCI device power state transitions
without runtime PM callbacks and complete the original intention of commit
c5eb1190074c ("PCI / PM: Allow runtime PM without callback functions").
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Raag Jadav <[email protected]>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <[email protected]>
Tested-by: Jarkko Nikula <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Stanislaw Gruszka <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions