aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-hcd.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 22:46:19 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-26 22:46:48 -0500
commit47b649590dbbea182f854d6470ee1cd59b7b7684 (patch)
treea2de3610f9c5e963234cffb35b9d559aab62e164 /drivers/usb/host/ohci-hcd.c
parent3af5154a869bc278a829bb03e65a709480e821b0 (diff)
parentcaca6a03d365883564885f2c1da3e88dcf65d139 (diff)
Merge 3.2-rc3 into usb-linus
This pulls in the latest USB bugfixes and helps a few of the drivers merge nicer in the future due to changes in both branches. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r--drivers/usb/host/ohci-hcd.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 95d639cd5b8c..4fa5d8c4d239 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -390,17 +390,14 @@ ohci_shutdown (struct usb_hcd *hcd)
390 struct ohci_hcd *ohci; 390 struct ohci_hcd *ohci;
391 391
392 ohci = hcd_to_ohci (hcd); 392 ohci = hcd_to_ohci (hcd);
393 ohci_writel (ohci, OHCI_INTR_MIE, &ohci->regs->intrdisable); 393 ohci_writel(ohci, (u32) ~0, &ohci->regs->intrdisable);
394 ohci->hc_control = ohci_readl(ohci, &ohci->regs->control);
395 394
396 /* If the SHUTDOWN quirk is set, don't put the controller in RESET */ 395 /* Software reset, after which the controller goes into SUSPEND */
397 ohci->hc_control &= (ohci->flags & OHCI_QUIRK_SHUTDOWN ? 396 ohci_writel(ohci, OHCI_HCR, &ohci->regs->cmdstatus);
398 OHCI_CTRL_RWC | OHCI_CTRL_HCFS : 397 ohci_readl(ohci, &ohci->regs->cmdstatus); /* flush the writes */
399 OHCI_CTRL_RWC); 398 udelay(10);
400 ohci_writel(ohci, ohci->hc_control, &ohci->regs->control);
401 399
402 /* flush the writes */ 400 ohci_writel(ohci, ohci->fminterval, &ohci->regs->fminterval);
403 (void) ohci_readl (ohci, &ohci->regs->control);
404} 401}
405 402
406static int check_ed(struct ohci_hcd *ohci, struct ed *ed) 403static int check_ed(struct ohci_hcd *ohci, struct ed *ed)