diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-04-04 15:32:55 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-04-11 17:35:06 -0500 |
commit | e74b2b58ff715ca17bb49c3ad89f665a7150e14b (patch) | |
tree | 29be645c6f56e6cdf9a9bbb8a9f97ea1a178f392 /drivers/pci/pci-driver.c | |
parent | e8b908146d44310473e43b3382eca126e12d279c (diff) | |
download | linux-stable-e74b2b58ff715ca17bb49c3ad89f665a7150e14b.tar.gz linux-stable-e74b2b58ff715ca17bb49c3ad89f665a7150e14b.tar.bz2 linux-stable-e74b2b58ff715ca17bb49c3ad89f665a7150e14b.zip |
PCI/PM: Drop pci_bridge_wait_for_secondary_bus() timeout parameter
All callers of pci_bridge_wait_for_secondary_bus() supply a timeout of
PCIE_RESET_READY_POLL_MS, so drop the parameter. Move the definition of
PCIE_RESET_READY_POLL_MS into pci.c, the only user.
[bhelgaas: extracted from
https://lore.kernel.org/r/20230404052714.51315-3-mika.westerberg@linux.intel.com]
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 6b5b2a818e65..ae9baf801681 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -572,8 +572,8 @@ static void pci_pm_default_resume_early(struct pci_dev *pci_dev) static void pci_pm_bridge_power_up_actions(struct pci_dev *pci_dev) { - pci_bridge_wait_for_secondary_bus(pci_dev, "resume", - PCIE_RESET_READY_POLL_MS); + pci_bridge_wait_for_secondary_bus(pci_dev, "resume"); + /* * When powering on a bridge from D3cold, the whole hierarchy may be * powered on into D0uninitialized state, resume them to give them a |