Patchwork [7/7] PCI, ibmphp: disable ARI forwarding for ibmphp

login
register
mail settings
Submitter Yijing Wang
Date Oct. 9, 2012, 3:03 a.m.
Message ID <1349751804-7476-8-git-send-email-wangyijing@huawei.com>
Download mbox | patch
Permalink /patch/190176/
State Superseded
Headers show

Comments

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/ibmphp_core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c
index cbd72d8..c07afba 100644
--- a/drivers/pci/hotplug/ibmphp_core.c
+++ b/drivers/pci/hotplug/ibmphp_core.c
@@ -722,6 +722,7 @@  static void ibm_unconfigure_device(struct pci_func *func)
 		temp = pci_get_bus_and_slot(func->busno, (func->device << 3) | j);
 		if (temp) {
 			pci_stop_and_remove_bus_device(temp);
+			pci_configure_ari(temp, false);
 			pci_dev_put(temp);
 		}
 	}