aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2006-10-27 10:35:01 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 17:23:27 -0500
commit565402baee99096da4d79209e450fe42d379a0ca (patch)
treefe2bce71cb62cf01f720ba099a7983a1c2496eea /drivers
parent5d7efe5b3768bf53df9b87380ea68baacf11f933 (diff)
USB: OHCI: remove stale testing code from root-hub resume
This patch (as811) removes some stale testing code from the root-hub resume routine in ohci-hcd. It also adds a spin_lock_irq() call that inadvertently got left out of an error pathway. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ohci-hub.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
index 1e5ed3bb1a93..dcf9eb601328 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -204,18 +204,6 @@ __acquires(ohci->lock)
204 goto skip_resume; 204 goto skip_resume;
205 spin_unlock_irq (&ohci->lock); 205 spin_unlock_irq (&ohci->lock);
206 206
207 temp = ohci->num_ports;
208 while (temp--) {
209 u32 stat = ohci_readl (ohci,
210 &ohci->regs->roothub.portstatus [temp]);
211
212 /* force global, not selective, resume */
213 if (!(stat & RH_PS_PSS))
214 continue;
215 ohci_writel (ohci, RH_PS_POCI,
216 &ohci->regs->roothub.portstatus [temp]);
217 }
218
219 /* Some controllers (lucent erratum) need extra-long delays */ 207 /* Some controllers (lucent erratum) need extra-long delays */
220 msleep (20 /* usb 11.5.1.10 */ + 12 /* 32 msec counter */ + 1); 208 msleep (20 /* usb 11.5.1.10 */ + 12 /* 32 msec counter */ + 1);
221 209
@@ -223,6 +211,7 @@ __acquires(ohci->lock)
223 temp &= OHCI_CTRL_HCFS; 211 temp &= OHCI_CTRL_HCFS;
224 if (temp != OHCI_USB_RESUME) { 212 if (temp != OHCI_USB_RESUME) {
225 ohci_err (ohci, "controller won't resume\n"); 213 ohci_err (ohci, "controller won't resume\n");
214 spin_lock_irq(&ohci->lock);
226 return -EBUSY; 215 return -EBUSY;
227 } 216 }
228 217