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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user