提交 badef819 编写于 作者: B Benjamin Herrenschmidt 提交者: Greg Kroah-Hartman

usb: Remove OHCI useless masking/unmasking of WDH interrupt

The OHCI driver's IRQ handler, while processing a WDH interrupt, masks
and unmasks it.  I believe this is both broken (the write may still be
posted during the donelist processing it's trying to safeguard) and
useless as this IRQ may not be reissued until it's acked (unless this
legacy code is an uncommented workaround for some chip erratum).
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 694cc208
...@@ -810,13 +810,9 @@ static irqreturn_t ohci_irq (struct usb_hcd *hcd) ...@@ -810,13 +810,9 @@ static irqreturn_t ohci_irq (struct usb_hcd *hcd)
} }
if (ints & OHCI_INTR_WDH) { if (ints & OHCI_INTR_WDH) {
if (HC_IS_RUNNING(hcd->state))
ohci_writel (ohci, OHCI_INTR_WDH, &regs->intrdisable);
spin_lock (&ohci->lock); spin_lock (&ohci->lock);
dl_done_list (ohci); dl_done_list (ohci);
spin_unlock (&ohci->lock); spin_unlock (&ohci->lock);
if (HC_IS_RUNNING(hcd->state))
ohci_writel (ohci, OHCI_INTR_WDH, &regs->intrenable);
} }
if (quirk_zfmicro(ohci) && (ints & OHCI_INTR_SF)) { if (quirk_zfmicro(ohci) && (ints & OHCI_INTR_SF)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册