Commit 7cbeb9f9 authored by Yinghai Lu's avatar Yinghai Lu Committed by Bjorn Helgaas

PCI: pciehp: Fix pcie_wait_cmd() timeout

pcie_poll_cmd() take msecs instead of jiffies, so convert timeout to msecs.

Fixes: 40b96083 ("PCI: pciehp: Compute timeout from hotplug command start time")
Signed-off-by: default avatarYinghai Lu <yinghai@kernel.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 12d87069
...@@ -160,7 +160,7 @@ static void pcie_wait_cmd(struct controller *ctrl) ...@@ -160,7 +160,7 @@ static void pcie_wait_cmd(struct controller *ctrl)
ctrl->slot_ctrl & PCI_EXP_SLTCTL_CCIE) ctrl->slot_ctrl & PCI_EXP_SLTCTL_CCIE)
rc = wait_event_timeout(ctrl->queue, !ctrl->cmd_busy, timeout); rc = wait_event_timeout(ctrl->queue, !ctrl->cmd_busy, timeout);
else else
rc = pcie_poll_cmd(ctrl, timeout); rc = pcie_poll_cmd(ctrl, jiffies_to_msecs(timeout));
/* /*
* Controllers with errata like Intel CF118 don't generate * Controllers with errata like Intel CF118 don't generate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment