summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorZhang Yan <b34916@freescale.com>2011-01-27 17:27:03 +0800
committerAlan Tull <alan.tull@freescale.com>2011-02-03 16:45:27 -0600
commitf618ab58066ee2cd5b944108068044fb64f8ef32 (patch)
treedcabaf39242769d1f11ba5160bcc6e8929928c6d /drivers/usb/host
parent1ae03e565218b4b9e03197c4d66960efbe6c9fde (diff)
ENGR00138560 USB: Disable usb interrupt before host resume
Disable usb interrupt in host wakeup to avoid bad irq. USB host irq was re-enabled in resume. BTW, set host-to-gadget discharge 20ms. Signed-off-by: Zhang Yan <b34916@freescale.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-arc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c
index af86a962826c..cf932e3b5466 100644
--- a/drivers/usb/host/ehci-arc.c
+++ b/drivers/usb/host/ehci-arc.c
@@ -130,6 +130,9 @@ void fsl_usb_recover_hcd(struct platform_device *pdev)
/* Resume root hub here? */
usb_hcd_resume_root_hub(hcd);
}
+
+ /* disable all interrupt, will re-enable in resume */
+ ehci_writel(ehci, 0, &ehci->regs->intr_enable);
}
/**