lkml.org 
[lkml]   [2012]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 3/3] usb, PCI: remove vendor checking for netlogic with uhci/xhci
Date
| commit e4436a7c17ac2b5e138f93f83a541cba9b311685
| usb: Skip PCI USB quirk handling for Netlogic XLP
| 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
| usb/host/pci-quirks.c.

so only do that checking for EHCI and OHCI.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Jayachandran C <jayachandranc@netlogicmicro.com>

---
drivers/usb/host/pci-quirks.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)

Index: linux-2.6/drivers/usb/host/pci-quirks.c
===================================================================
--- linux-2.6.orig/drivers/usb/host/pci-quirks.c
+++ linux-2.6/drivers/usb/host/pci-quirks.c
@@ -884,15 +884,8 @@ static void __devinit quirk_usb_handoff_
iounmap(base);
}

-static void __devinit quirk_usb_early_handoff_uhci(struct pci_dev *pdev)
-{
- if (pdev->vendor == 0x184e) /* vendor Netlogic */
- return;
-
- quirk_usb_handoff_uhci(pdev);
-}
DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,
- PCI_CLASS_SERIAL_USB_UHCI, 0, quirk_usb_early_handoff_uhci);
+ PCI_CLASS_SERIAL_USB_UHCI, 0, quirk_usb_handoff_uhci);

static void __devinit quirk_usb_early_handoff_ohci(struct pci_dev *pdev)
{
@@ -919,9 +912,6 @@ DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID

static void __devinit quirk_usb_early_handoff_xhci(struct pci_dev *pdev)
{
- if (pdev->vendor == 0x184e) /* vendor Netlogic */
- return;
-
if (pci_enable_device(pdev) < 0) {
dev_warn(&pdev->dev, "Can't enable PCI device, "
"BIOS handoff failed.\n");

\
 
 \ /
  Last update: 2012-03-01 20:27    [W:1.148 / U:4.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site