PCI: Fix TI816X class code quirk
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 19 Jun 2015 20:58:24 +0000 (15:58 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 30 Sep 2015 08:59:52 +0000 (10:59 +0200)
commit8c9777e56564e7caeb93e6f61f31fadeb5063a56
tree2c462c7b890dc80bb2d68ce35355312ced04b84b
parenta1c6aebe73fa86c171b9b14d3402aaf2abc24975
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: Jiri Slaby <jslaby@suse.cz>
drivers/pci/quirks.c