From patchwork Tue Oct 9 03:03:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6/7] PCI, sgi: disable ARI forwarding for sgiphp Date: Mon, 08 Oct 2012 17:03:23 -0000 From: Yijing Wang X-Patchwork-Id: 190175 Message-Id: <1349751804-7476-7-git-send-email-wangyijing@huawei.com> To: Bjorn Helgaas Cc: , Hanjun Guo , , Yinghai Lu , Yijing Wang Disable the port ARI forwarding when a ARI device was hot removed. Signed-off-by: Yijing Wang --- drivers/pci/hotplug/sgi_hotplug.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c index f64ca92..8d02367 100644 --- a/drivers/pci/hotplug/sgi_hotplug.c +++ b/drivers/pci/hotplug/sgi_hotplug.c @@ -553,6 +553,7 @@ static int disable_slot(struct hotplug_slot *bss_hotplug_slot) if (dev) { sn_bus_free_data(dev); pci_stop_and_remove_bus_device(dev); + pci_configure_ari(dev, false); pci_dev_put(dev); } }