PCI: Fix TI816X class code quirk
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 19 Jun 2015 20:58:24 +0000 (15:58 -0500)
committerZefan Li <lizefan@huawei.com>
Wed, 27 Apr 2016 10:55:13 +0000 (18:55 +0800)
commitb9ed7f2f1893f30e42d2f7745a5d4ddec430eea4
tree0512ffa9e20fe0a258cccb8f89c8004906053656
parentc2b5a66d7651c4ae1fa7ad30fc1ceff02a50d37d
PCI: Fix TI816X class code quirk

commit d1541dc977d376406f4584d8eb055488655c98ec upstream.

In fixup_ti816x_class(), we assigned "class = PCI_CLASS_MULTIMEDIA_VIDEO".
But PCI_CLASS_MULTIMEDIA_VIDEO is only the two-byte base class/sub-class
and needs to be shifted to make space for the low-order interface byte.

Shift PCI_CLASS_MULTIMEDIA_VIDEO to set the correct class code.

Fixes: 63c4408074cb ("PCI: Add quirk for setting valid class for TI816X Endpoint")
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Hemant Pedanekar <hemantp@ti.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/pci/quirks.c