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

login
register
mail settings
Submitter Yijing Wang
Date Oct. 9, 2012, 3:03 a.m.
Message ID <1349751804-7476-6-git-send-email-wangyijing@huawei.com>
Download mbox | patch
Permalink /patch/190173/
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/shpchp_pci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/pci/hotplug/shpchp_pci.c b/drivers/pci/hotplug/shpchp_pci.c
index c627ed9..0f07577 100644
--- a/drivers/pci/hotplug/shpchp_pci.c
+++ b/drivers/pci/hotplug/shpchp_pci.c
@@ -110,6 +110,7 @@  int shpchp_unconfigure_device(struct slot *p_slot)
 			}
 		}
 		pci_stop_and_remove_bus_device(temp);
+		pci_configure_ari(temp, false);
 		pci_dev_put(temp);
 	}
 	return rc;