[PATCH v5 1/4] PCI/ERR: Add support for resetting the Root Ports in a platform specific way
Lukas Wunner
lukas at wunner.de
Tue Jul 15 18:16:27 AEST 2025
On Tue, Jul 15, 2025 at 01:29:18PM +0530, Manivannan Sadhasivam wrote:
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -4964,7 +4964,19 @@ void pci_reset_secondary_bus(struct pci_dev *dev)
>
> void __weak pcibios_reset_secondary_bus(struct pci_dev *dev)
> {
> + struct pci_host_bridge *host = pci_find_host_bridge(dev->bus);
> + int ret;
> +
> + if (host->reset_root_port) {
> + ret = host->reset_root_port(host, dev);
> + if (ret)
> + pci_err(dev, "Failed to reset Root Port: %d\n", ret);
> +
> + return;
> + }
> +
There used to be a pci_is_root_bus() check here:
https://lore.kernel.org/r/20250524185304.26698-2-manivannan.sadhasivam@linaro.org/
Thanks,
Lukas
More information about the Linuxppc-dev
mailing list