summaryrefslogtreecommitdiff
path: root/drivers/pci/ecam.c
diff options
context:
space:
mode:
authorTuan Phan <tuanphan@os.amperecomputing.com>2020-08-06 14:57:34 -0700
committerBjorn Helgaas <bhelgaas@google.com>2020-09-17 12:27:43 -0500
commit877c1a5f79c6984bbe3f2924234c08e2f4f1acd5 (patch)
tree78661f2d38a78f879a6d1e5f7d1a5122c99daa69 /drivers/pci/ecam.c
parent2ce02a864ac1a2bf99baeb20d38100d2cc413ac2 (diff)
downloadlinux-877c1a5f79c6984bbe3f2924234c08e2f4f1acd5.tar.gz
PCI/ACPI: Add Ampere Altra SOC MCFG quirk
Ampere Altra SOC supports only 32-bit ECAM reads. Add an MCFG quirk for the platform. Link: https://lore.kernel.org/r/1596751055-12316-1-git-send-email-tuanphan@os.amperecomputing.com Signed-off-by: Tuan Phan <tuanphan@os.amperecomputing.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/ecam.c')
-rw-r--r--drivers/pci/ecam.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/ecam.c b/drivers/pci/ecam.c
index 8f065a42fc1a..b54d32a31669 100644
--- a/drivers/pci/ecam.c
+++ b/drivers/pci/ecam.c
@@ -168,4 +168,14 @@ const struct pci_ecam_ops pci_32b_ops = {
.write = pci_generic_config_write32,
}
};
+
+/* ECAM ops for 32-bit read only (non-compliant) */
+const struct pci_ecam_ops pci_32b_read_ops = {
+ .bus_shift = 20,
+ .pci_ops = {
+ .map_bus = pci_ecam_map_bus,
+ .read = pci_generic_config_read32,
+ .write = pci_generic_config_write,
+ }
+};
#endif