ChangeSet 1.1455.1.40, 2003/07/17 14:46:26-07:00, stern@rowland.harvard.edu [PATCH] USB: Handle over current inputs on all Intel controllers This patch for the UHCI driver changes the test for over current inputs, which can cause false Resume indications with some of Intel's USB controllers. Previously the code only checked for one specific controller chip, but now another one has turned up that exhibits the same flaw. It seems best just to check for Intel being the manufacturer, especially since it doesn't hurt to check for the condition when it isn't present or is only temporary. drivers/usb/host/uhci-hcd.c | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff -Nru a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c --- a/drivers/usb/host/uhci-hcd.c Thu Jul 17 17:03:23 2003 +++ b/drivers/usb/host/uhci-hcd.c Thu Jul 17 17:03:23 2003 @@ -2007,19 +2007,17 @@ unsigned int io_addr = uhci->io_addr; int i; - if (!uhci->hcd.pdev || - uhci->hcd.pdev->vendor != PCI_VENDOR_ID_INTEL || - uhci->hcd.pdev->device != PCI_DEVICE_ID_INTEL_82371AB_2) + if (!uhci->hcd.pdev || uhci->hcd.pdev->vendor != PCI_VENDOR_ID_INTEL) return 1; - /* This is a 82371AB/EB/MB USB controller which has a bug that - * causes false resume indications if any port has an - * over current condition. To prevent problems, we will not - * allow a global suspend if any ports are OC. + /* Some of Intel's USB controllers have a bug that causes false + * resume indications if any port has an over current condition. + * To prevent problems, we will not allow a global suspend if + * any ports are OC. * - * Some motherboards using the 82371AB/EB/MB (but not the USB portion) - * appear to hardwire the over current inputs active to disable - * the USB ports. + * Some motherboards using Intel's chipsets (but not using all + * the USB ports) appear to hardwire the over current inputs active + * to disable the USB ports. */ /* check for over current condition on any port */