Update 0004-pci-Enable-overrides-for-missing-ACS-capabilities-4..patch

fix asrock j3455-itx
This commit is contained in:
JohnZ-CN 2023-06-02 16:27:45 +08:00 committed by GitHub
parent 6d345395f3
commit 66d7da19bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index e84378684643..0bfa7199c974 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -194,6 +194,106 @@ static int __init pci_apply_final_quirks(void)
@@ -194,6 +194,105 @@ static int __init pci_apply_final_quirks(void)
}
fs_initcall_sync(pci_apply_final_quirks);
@ -156,8 +156,7 @@ index e84378684643..0bfa7199c974 100644
+ int i;
+
+ /* Never override ACS for legacy devices or devices with ACS caps */
+ if (!pci_is_pcie(dev) ||
+ pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ACS))
+ if (!pci_is_pcie(dev))
+ return -ENOTTY;
+
+ for (i = 0; i < max_acs_id; i++)