• Bjorn Helgaas's avatar
    PCI/PM: Adjust pcie_wait_for_link_delay() for caller delay · f044baaf
    Bjorn Helgaas authored
    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: 4827d638 ("PCI/PM: Add pcie_wait_for_link_delay()")
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    f044baaf
pci.c 173 KB