[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch 49/55] usb: Skip PCI USB quirk handling for Netlogic XLP
3.0-stable review patch.  If anyone has any objections, please let me know.


From: Jayachandran C <>

commit e4436a7c17ac2b5e138f93f83a541cba9b311685 upstream.

The Netlogic XLP SoC's on-chip USB controller appears as a PCI
USB device, but does not need the EHCI/OHCI handoff done in

The pci-quirks.c is enabled for all vendors and devices, and is
enabled if USB and PCI are configured.

If we do not skip the qurik handling on XLP, the readb() call in
ehci_bios_handoff() will cause a crash since byte access is not
supported for EHCI registers in XLP.

Signed-off-by: Jayachandran C <>
Acked-by: Alan Stern <>
Signed-off-by: Greg Kroah-Hartman <>

drivers/usb/host/pci-quirks.c | 6 ++++++
1 file changed, 6 insertions(+)

--- a/drivers/usb/host/pci-quirks.c
+++ b/drivers/usb/host/pci-quirks.c
@@ -866,6 +866,12 @@ hc_init:

static void __devinit quirk_usb_early_handoff(struct pci_dev *pdev)
+ /* Skip Netlogic mips SoC's internal PCI USB controller.
+ * This device does not need/support EHCI/OHCI handoff
+ */
+ if (pdev->vendor == 0x184e) /* vendor Netlogic */
+ return;
if (pdev->class == PCI_CLASS_SERIAL_USB_UHCI)
else if (pdev->class == PCI_CLASS_SERIAL_USB_OHCI)

 \ /
  Last update: 2012-02-10 23:51    [W:0.119 / U:3.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site