]> git.itanic.dy.fi Git - linux-stable/commit
PCI: mt7621: Move MIPS setup to pcibios_root_bridge_prepare()
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 7 Dec 2021 10:49:21 +0000 (11:49 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Jan 2022 21:38:20 +0000 (15:38 -0600)
commitfe7498ef791710a8bb79008850ce7fcbd3903657
tree55b6bf03aeb47e257c7bddf7fa92b90962d20986
parent661c4c4f2693a8cdd42a93a2418244b8f5115e6b
PCI: mt7621: Move MIPS setup to pcibios_root_bridge_prepare()

On the MIPS ralink mt7621 platform, we need to set up I/O coherency units
based on the host bridge apertures.

To remove this arch dependency from the driver itself, move the coherency
setup from the driver to pcibios_root_bridge_prepare().

[bhelgaas: squash add/remove into one patch, commit log]
Link: https://lore.kernel.org/r/20211207104924.21327-3-sergio.paracuellos@gmail.com
Link: https://lore.kernel.org/r/20211207104924.21327-4-sergio.paracuellos@gmail.com
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net> # arch/mips
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> # arch/mips
arch/mips/ralink/mt7621.c
drivers/pci/controller/pcie-mt7621.c