diff options
author | 2016-03-15 14:06:00 +0200 | |
---|---|---|
committer | 2016-03-15 08:52:28 -0500 | |
commit | 7b78f48a0443eceae435870b14e86d586f8c2a3e (patch) | |
tree | 13d5d88f0937ac425ae20b0c983f89ed5eb113b8 /drivers/pci/quirks.c | |
parent | PCI: Add QEMU top-level IDs for (sub)vendor & device (diff) | |
download | linux-7b78f48a0443eceae435870b14e86d586f8c2a3e.tar.gz linux-7b78f48a0443eceae435870b14e86d586f8c2a3e.tar.bz2 linux-7b78f48a0443eceae435870b14e86d586f8c2a3e.zip |
PCI: Add PCI_CLASS_SERIAL_USB_DEVICE definition
PCI-SIG has defined Interface FEh for Base Class 0Ch, Sub-Class 03h as "USB
Device (not host controller)". It is already being used in various USB
device controller drivers for matching, so add PCI_CLASS_SERIAL_USB_DEVICE
and use it.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r-- | drivers/pci/quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 0575a1e026b4..5714fcfde302 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -438,7 +438,7 @@ static void quirk_amd_nl_class(struct pci_dev *pdev) u32 class = pdev->class; /* Use "USB Device (not host controller)" class */ - pdev->class = (PCI_CLASS_SERIAL_USB << 8) | 0xfe; + pdev->class = PCI_CLASS_SERIAL_USB_DEVICE; dev_info(&pdev->dev, "PCI class overridden (%#08x -> %#08x) so dwc3 driver can claim this instead of xhci\n", class, pdev->class); } |