This patchset resolve some Loongson-related pci problems: The first patch improve the mrrs quirk for LS7A chipset. The second patch move some LS7A quirks to quirks.c, where can be shared by multi archi- tectures. The third patch add a new quirk for LS7A chipset to avoid poweroff/reboot failure, and the fourth patch add a new quirk for LS7A chipset to fix multifunction devices' irq pin mappings. V1 -> V2: 1, Rework the 4th patch; 2, Improve commit messages; 3, Remove the last patch since there is better solutions. V2 -> V3: 1, Add more affected device ids for the 4th patch; 2, Improve commit messages to describe root causes. V3 -> V4: 1, Rework the MRRS quirk patch; 2, Improve commit messages to describe root causes, again. V4 -> V5: 1, Improve the MRRS quirk patch; 2, Change the order of 2nd and 3rd patch; 3, Improve commit messages to describe root causes, again. V5 -> V6: 1, Rework the 1st patch; 2, Adjust the order of the series. Huacai Chen, Tiezhu Yang and Jianmin Lv(4): PCI: Improve the MRRS quirk for LS7A. PCI: Move loongson pci quirks to quirks.c. PCI: Add quirk for LS7A to avoid reboot failure. PCI: Add quirk for multifunction devices of LS7A. Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx> Signed-off-by: Jianmin Lv <lvjianmin@xxxxxxxxxxx> Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> --- drivers/pci/controller/pci-loongson.c | 69 ----------------------- drivers/pci/pci.c | 6 ++ drivers/pci/pcie/portdrv_core.c | 6 +- drivers/pci/quirks.c | 102 ++++++++++++++++++++++++++++++++++ include/linux/pci.h | 2 + include/linux/pci_ids.h | 11 ++++ 6 files changed, 126 insertions(+), 70 deletions(-) -- 2.27.0