PCI: loongson: Use generic 8/16/32-bit config ops on LS2K/LS7A
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 14 Jul 2022 12:42:11 +0000 (20:42 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 14 Jul 2022 17:49:40 +0000 (12:49 -0500)
commitdee449aafd48213e6ba4db74526d30b097fc93cd
tree62cde7d11ccfdbc4f26bf87d87941839da407003
parent40a6cc141b4b9580de140bcb3e893445708acc5d
PCI: loongson: Use generic 8/16/32-bit config ops on LS2K/LS7A

LS2K/LS7A support 8/16/32-bits PCI config access operations via CFG1, so
we can disable CFG0 for them and safely use pci_generic_config_read()/
pci_generic_config_write() instead of pci_generic_config_read32()/pci_
generic_config_write32().

Link: https://lore.kernel.org/r/20220714124216.1489304-3-chenhuacai@loongson.cn
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pci-loongson.c