]> git.baikalelectronics.ru Git - kernel.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)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 15 May 2020 19:32:15 +0000 (14:32 -0500)
commitef03a66641183ece7db23dd5552e2cf448102e3f
tree5aa8ef3c08400d00bc426d2cec3b4005eaa8a481
parent43178ced42549595887aa1253d0b380d87850d27
PCI/PM: Adjust pcie_wait_for_link_delay() for caller delay

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: cf32545fbf58 ("PCI/PM: Add pcie_wait_for_link_delay()")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c