diff mbox

PCI: print out exact timeout in pciehp for wait_cmd

Message ID 1408756512-16885-3-git-send-email-yinghai@kernel.org
State Accepted
Headers show

Commit Message

Yinghai Lu Aug. 23, 2014, 1:15 a.m. UTC
debug print out should add back timeout that pass during wait event or

That now is cached vaule before wait.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>

 drivers/pci/hotplug/pciehp_hpc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox


Index: linux-2.6/drivers/pci/hotplug/pciehp_hpc.c
--- linux-2.6.orig/drivers/pci/hotplug/pciehp_hpc.c
+++ linux-2.6/drivers/pci/hotplug/pciehp_hpc.c
@@ -173,7 +173,7 @@  static void pcie_wait_cmd(struct control
 	if (!rc)
 		ctrl_info(ctrl, "Timeout on hotplug command %#010x (issued %u msec ago)\n",
-			  jiffies_to_msecs(now - ctrl->cmd_started));
+			  jiffies_to_msecs(now - ctrl->cmd_started + timeout));