[6/7] PCI, sgi: disable ARI forwarding for sgiphp

Submitted by Yijing Wang on Oct. 9, 2012, 3:03 a.m.

Details

Message ID 1349751804-7476-7-git-send-email-wangyijing@huawei.com
State Superseded
Headers show

Commit Message

Yijing Wang Oct. 9, 2012, 3:03 a.m.
Disable the port ARI forwarding when a ARI device was hot removed.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
 drivers/pci/hotplug/sgi_hotplug.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

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);
 		}
 	}