]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadaefb5bd456294a92a7fad1347302291c283382
tree62cde7d11ccfdbc4f26bf87d87941839da407003
parent1aa1def8a00d695b6a2936ca9c1a822b558ce91d
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