summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2006-04-26 14:39:11 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-05-08 23:43:54 -0700
commit839ab1d4ce4dfd7e6c189391a82c584292488b41 (patch)
tree052591e6d261b96052367fd9baaa2fcd1ae38d5f
parente515f048c46e457ef61ce9c8b56bd36e825a48a0 (diff)
downloadblackbird-obmc-linux-839ab1d4ce4dfd7e6c189391a82c584292488b41.tar.gz
blackbird-obmc-linux-839ab1d4ce4dfd7e6c189391a82c584292488b41.zip
[PATCH] USB: fix bug in ohci-hcd.c ohci_restart()
A loop on a power-lost resume path used the wrong index. I suspect khubd has been working around such bugs. Noticed by Andreas Mohr <andi@rhlx01.fht-esslingen.de>. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/host/ohci-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 544f7589912f..73f5a379d9b3 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -863,7 +863,7 @@ static int ohci_restart (struct ohci_hcd *ohci)
i = ohci->num_ports;
while (i--)
ohci_writel (ohci, RH_PS_PSS,
- &ohci->regs->roothub.portstatus [temp]);
+ &ohci->regs->roothub.portstatus [i]);
ohci_dbg (ohci, "restart complete\n");
}
return 0;
OpenPOWER on IntegriCloud