Skip to content

Commit d24eba7

Browse files
twilfredobjorn-helgaas
authored andcommitted
PCI: Print the actual delay time in pci_bridge_wait_for_secondary_bus()
Print the delay amount that pcie_wait_for_link_delay() is invoked with instead of the hardcoded 1000ms value in the debug info print. Fixes: 7b3ba09 ("PCI/PM: Shorten pci_bridge_wait_for_secondary_bus() wait time for slow links") Signed-off-by: Wilfred Mallawa <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 5fe8d08 commit d24eba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4954,7 +4954,7 @@ int pci_bridge_wait_for_secondary_bus(struct pci_dev *dev, char *reset_type)
49544954
delay);
49554955
if (!pcie_wait_for_link_delay(dev, true, delay)) {
49564956
/* Did not train, no need to wait any further */
4957-
pci_info(dev, "Data Link Layer Link Active not set in 1000 msec\n");
4957+
pci_info(dev, "Data Link Layer Link Active not set in %d msec\n", delay);
49584958
return -ENOTTY;
49594959
}
49604960

0 commit comments

Comments
 (0)