USB: ohci_usb warn "irq nobody cared" on shutdown
authorcaizhiyong <caizhiyong@huawei.com>
Fri, 26 Jul 2013 07:12:14 +0000 (07:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 20:55:21 +0000 (13:55 -0700)
commit435932f2c75efcdd07273a437b9be32647d56d73
treea4cd7c9c3055073ad1c15b032fae4928fc294747
parent4e682bbd32708f3eab55b66960933b36bc00e31a
USB: ohci_usb warn "irq nobody cared" on shutdown

When ohci-hcd is shutting down, call ohci_usb_reset reset ohci-hcd, the
root hub generate an interrupt, but ohci->rh_state is OHCI_RH_HALTED,
and ohci_irq ignore the interrupt, the kernel trigger warning "irq
nobody cared". ehci-hcd is first disable interrupts, then reset ehci.

This patch disable ohci interrupt before reset ohci.

The patch is tested at the arm cortex-a9 demo board.

Signed-off-by: caizhiyong <caizhiyong@huawei.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-hcd.c