]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI/PM: Adjust pcie_wait_for_link_delay() for caller delay
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 15 May 2020 19:31:16 +0000 (14:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:41:52 +0000 (16:41 +0200)
commitafeaa5f6ac44408bebb33412ca1dc962fc5761db
tree4b318b0a3c09f9a4f9ff4c2edded8200ae43d5b9
parent2a5256a52cb4dff7ef4642fe8c0a89793293ef4c
PCI/PM: Adjust pcie_wait_for_link_delay() for caller delay

[ Upstream commit f044baaff1eb7ae5aa7a36f1b7ad5bd8eeb672c4 ]

The caller of pcie_wait_for_link_delay() specifies the time to wait after
the link becomes active.  When the downstream port doesn't support link
active reporting, obviously we can't tell when the link becomes active, so
we waited the worst-case time (1000 ms) plus 100 ms, ignoring the delay
from the caller.

Instead, wait for 1000 ms + the delay from the caller.

Fixes: 4827d63891b6 ("PCI/PM: Add pcie_wait_for_link_delay()")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pci.c