Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

LoongArch: Add new PCI ID for pci_fixup_vgadev()

Loongson-2K3000 has a new PCI ID (0x7a46) for its display controller,
Add it for pci_fixup_vgadev() since we prefer a discrete graphics card
as default boot device if present.

Cc: stable@vger.kernel.org
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>

+2
+2
arch/loongarch/pci/pci.c
··· 14 14 #define PCI_DEVICE_ID_LOONGSON_HOST 0x7a00 15 15 #define PCI_DEVICE_ID_LOONGSON_DC1 0x7a06 16 16 #define PCI_DEVICE_ID_LOONGSON_DC2 0x7a36 17 + #define PCI_DEVICE_ID_LOONGSON_DC3 0x7a46 17 18 18 19 int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, 19 20 int reg, int len, u32 *val) ··· 98 97 } 99 98 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, PCI_DEVICE_ID_LOONGSON_DC1, pci_fixup_vgadev); 100 99 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, PCI_DEVICE_ID_LOONGSON_DC2, pci_fixup_vgadev); 100 + DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_LOONGSON, PCI_DEVICE_ID_LOONGSON_DC3, pci_fixup_vgadev);