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

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

Comments

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

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

Patch

diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 3d6d4fd..6c2a1b6 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -944,6 +944,7 @@  static int disable_device(struct acpiphp_slot *slot)
 	 */
 	while ((pdev = dev_in_slot(slot))) {
 		pci_stop_and_remove_bus_device(pdev);
+		pci_configure_ari(pdev, false);
 		pci_dev_put(pdev);
 	}