Disable the port ARI forwarding after an ARI device hot removed. Signed-off-by: Yijing Wang <wangyijing@xxxxxxxxxx> --- drivers/pci/hotplug/cpci_hotplug_pci.c | 1 + drivers/pci/hotplug/cpqphp_pci.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/pci/hotplug/cpci_hotplug_pci.c b/drivers/pci/hotplug/cpci_hotplug_pci.c index dcc75c7..d59d228 100644 --- a/drivers/pci/hotplug/cpci_hotplug_pci.c +++ b/drivers/pci/hotplug/cpci_hotplug_pci.c @@ -319,6 +319,7 @@ int cpci_unconfigure_slot(struct slot* slot) PCI_DEVFN(PCI_SLOT(slot->devfn), i)); if (dev) { pci_stop_and_remove_bus_device(dev); + pci_configure_ari(dev, false); pci_dev_put(dev); } } diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/hotplug/cpqphp_pci.c index 09801c6..a818c1a 100644 --- a/drivers/pci/hotplug/cpqphp_pci.c +++ b/drivers/pci/hotplug/cpqphp_pci.c @@ -128,6 +128,7 @@ int cpqhp_unconfigure_device(struct pci_func* func) if (temp) { pci_dev_put(temp); pci_stop_and_remove_bus_device(temp); + pci_configure_ari(temp, false); } } return 0; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html