Commit a5827f40 authored by Adrian Bunk's avatar Adrian Bunk Committed by Jesse Barnes

PCI: fix pciehp_free_irq()

This patch fixes an obvious bug (loop was never entered) caused by
commit 820943b6
(pciehp: cleanup pcie_poll_cmd).
Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 48902025
...@@ -258,7 +258,7 @@ static int pcie_poll_cmd(struct controller *ctrl) ...@@ -258,7 +258,7 @@ static int pcie_poll_cmd(struct controller *ctrl)
return 1; return 1;
} }
} }
while (timeout > 1000) { while (timeout > 0) {
msleep(10); msleep(10);
timeout -= 10; timeout -= 10;
if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) { if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) {
......
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