aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-pci.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-05-14 13:48:16 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-14 12:50:22 -0700
commit1996e6c572969a8cf6d7fa97eef621219acd94a9 (patch)
tree4a6bcdd32202438d6f8a4671a936319c0292dbf3 /drivers/usb/host/ehci-pci.c
parentUSB: EHCI: improve full-speed isochronous scheduling routine (diff)
downloadlinux-dev-1996e6c572969a8cf6d7fa97eef621219acd94a9.tar.xz
linux-dev-1996e6c572969a8cf6d7fa97eef621219acd94a9.zip
USB: EHCI: work around bug in the Philips ISP1562 controller
This patch (as1556) works around a bug in the Philips ISP1562 EHCI controller. Although the controller claims to support frame-list lengths smaller than the default of 1024 for its periodic schedule, in fact smaller values don't work. A new quirk flag is added to indicate when the bug is present, and if it is then the schedule size is left at the default value. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-pci.c')
-rw-r--r--drivers/usb/host/ehci-pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index bc94d7bf072d..4baafa3e80b2 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -97,6 +97,13 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
break;
}
break;
+
+ case PCI_VENDOR_ID_PHILIPS:
+ /*
+ * Philips controllers set HCC_PGM_FRAMELISTLEN, but
+ * they don't implement schedule sizes shorter than 1024.
+ */
+ ehci->sched_size_bug = 1;
}
/* cache this readonly data; minimize chip reads */