From patchwork Tue Oct 9 03:03:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 190174 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 957692C024D for ; Tue, 9 Oct 2012 14:04:14 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754716Ab2JIDEO (ORCPT ); Mon, 8 Oct 2012 23:04:14 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:53030 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754746Ab2JIDEN (ORCPT ); Mon, 8 Oct 2012 23:04:13 -0400 Received: from 172.24.2.119 (EHLO szxeml206-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AQG37902; Tue, 09 Oct 2012 11:04:07 +0800 (CST) Received: from SZXEML423-HUB.china.huawei.com (10.82.67.162) by szxeml206-edg.china.huawei.com (172.24.2.59) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 9 Oct 2012 11:03:45 +0800 Received: from localhost (10.135.76.84) by szxeml423-hub.china.huawei.com (10.82.67.162) with Microsoft SMTP Server id 14.1.323.3; Tue, 9 Oct 2012 11:03:38 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , Hanjun Guo , , Yinghai Lu , Yijing Wang Subject: [PATCH 3/7] PCI, pciehp: disable ARI forwarding for pciehp Date: Tue, 9 Oct 2012 11:03:20 +0800 Message-ID: <1349751804-7476-4-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.11.msysgit.1 In-Reply-To: <1349751804-7476-1-git-send-email-wangyijing@huawei.com> References: <1349751804-7476-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.135.76.84] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Disable the port ARI forwarding after an ARI device hot removed. Signed-off-by: Yijing Wang --- drivers/pci/hotplug/pciehp_pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 09cecaf..6d12d20 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c @@ -118,6 +118,7 @@ int pciehp_unconfigure_device(struct slot *p_slot) } } pci_stop_and_remove_bus_device(temp); + pci_configure_ari(temp, false); /* * Ensure that no new Requests will be generated from * the device.