From 5326c5351ab2a972767c45bb860915646424eec6 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 28 Dec 2003 18:20:31 -0800 Subject: [PATCH] Turn off UHCI interrupts at initialization. The BIOS may have left the USB controller in some strange state, and we want to fully initialize it before we are ready to handle interrupts. --- drivers/usb/host/uhci-hcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index fd8bc78db10c5..41d3171fb333f 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c @@ -2182,6 +2182,9 @@ static int uhci_reset(struct usb_hcd *hcd) uhci->io_addr = (unsigned long) hcd->regs; + /* Turn off all interrupts */ + outw(0, uhci->io_addr + USBINTR); + /* Maybe kick BIOS off this hardware. Then reset, so we won't get * interrupts from any previous setup. */ -- 2.53.0