• Bjorn Helgaas's avatar
    PCI: Fix TI816X class code quirk · 8c9777e5
    Bjorn Helgaas authored
    commit d1541dc9 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: 63c44080 ("PCI: Add quirk for setting valid class for TI816X Endpoint")
    Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
    CC: Hemant Pedanekar <hemantp@ti.com>
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    8c9777e5
quirks.c 118 KB