]> git.ipfire.org Git - people/ms/linux.git/commit
PCI: Fix TI816X class code quirk
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 19 Jun 2015 20:58:24 +0000 (15:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:02:17 +0000 (10:02 -0700)
commitd31b9d1e86cbdb6fef1f63404acc44dc9cf7d970
tree4facbb9a3053e33d0d7b5144f79c5fa305f49790
parent440bc234e6d0736757f6c6ef27a3953b77346c5e
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/quirks.c