Skip to content

Commit 82db36f

Browse files
committed
PCI: Add ARCH_PHYTIUM check for phytium root and switch ports
deepin inclusion category: bugfix To prevent affect other platform or use a runtime check, use ARCH_PHYTIUM to limit the quirk in our arm64 platform kernel. Link: https://lore.kernel.org/all/20170720161905.24e300eb@ul30vt.home/ Link: https://lore.kernel.org/all/1519183167-17716-1-git-send-email-fkan@apm.com/ Link: https://lore.kernel.org/all/1501267843-8095-1-git-send-email-fkan@apm.com/ Fixes: 66d2694 ("PCI: Add ACS quirk for phytium root and switch ports") Suggested-by: WangYuli <wangyuli@aosc.io> Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 8200fe6 commit 82db36f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/pci/quirks.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5381,8 +5381,10 @@ static const struct pci_dev_acs_enabled {
53815381
{ PCI_VENDOR_ID_MUCSE, 0x1061, pci_quirk_mf_endpoint_acs },
53825382
{ PCI_VENDOR_ID_MUCSE, 0x1c61, pci_quirk_mf_endpoint_acs },
53835383
/* Phytium Technology */
5384+
#ifdef CONFIG_ARCH_PHYTIUM
53845385
{ PCI_VENDOR_ID_PLX, PCI_ANY_ID, pci_quirk_xgene_acs },
53855386
{ PCI_VENDOR_ID_CDNS, PCI_ANY_ID, pci_quirk_xgene_acs },
5387+
#endif /* CONFIG_ARCH_PHYTIUM */
53865388
{ PCI_VENDOR_ID_PHYTIUM, PCI_ANY_ID, pci_quirk_xgene_acs },
53875389
{ 0 }
53885390
};

0 commit comments

Comments
 (0)