mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-29 09:44:06 +00:00
PCI: Use class for quirk for ti816x class fixup
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
4c5b28e26d
commit
40c96236bd
1 changed files with 4 additions and 5 deletions
|
@ -2822,12 +2822,11 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x3c28, vtd_mask_spec_errors);
|
||||||
static void __devinit fixup_ti816x_class(struct pci_dev* dev)
|
static void __devinit fixup_ti816x_class(struct pci_dev* dev)
|
||||||
{
|
{
|
||||||
/* TI 816x devices do not have class code set when in PCIe boot mode */
|
/* TI 816x devices do not have class code set when in PCIe boot mode */
|
||||||
if (dev->class == PCI_CLASS_NOT_DEFINED) {
|
|
||||||
dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n");
|
dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n");
|
||||||
dev->class = PCI_CLASS_MULTIMEDIA_VIDEO;
|
dev->class = PCI_CLASS_MULTIMEDIA_VIDEO;
|
||||||
}
|
}
|
||||||
}
|
DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_TI, 0xb800,
|
||||||
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_TI, 0xb800, fixup_ti816x_class);
|
PCI_CLASS_NOT_DEFINED, 0, fixup_ti816x_class);
|
||||||
|
|
||||||
/* Some PCIe devices do not work reliably with the claimed maximum
|
/* Some PCIe devices do not work reliably with the claimed maximum
|
||||||
* payload size supported.
|
* payload size supported.
|
||||||
|
|
Loading…
Add table
Reference in a new issue