From patchwork Tue Oct 9 03:03:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 1567691 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A5947DF238 for ; Tue, 9 Oct 2012 03:04:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754802Ab2JIDEw (ORCPT ); Mon, 8 Oct 2012 23:04:52 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:1283 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754800Ab2JIDEv (ORCPT ); Mon, 8 Oct 2012 23:04:51 -0400 Received: from 172.24.2.119 (EHLO szxeml210-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AQF49117; Tue, 09 Oct 2012 11:04:47 +0800 (CST) Received: from SZXEML424-HUB.china.huawei.com (10.82.67.163) by szxeml210-edg.china.huawei.com (172.24.2.183) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 9 Oct 2012 11:03:49 +0800 Received: from localhost (10.135.76.84) by szxeml424-hub.china.huawei.com (10.82.67.163) with Microsoft SMTP Server id 14.1.323.3; Tue, 9 Oct 2012 11:03:43 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , Hanjun Guo , , Yinghai Lu , Yijing Wang Subject: [PATCH 7/7] PCI, ibmphp: disable ARI forwarding for ibmphp Date: Tue, 9 Oct 2012 11:03:24 +0800 Message-ID: <1349751804-7476-8-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 when a ARI device was hot removed. Signed-off-by: Yijing Wang --- drivers/pci/hotplug/ibmphp_core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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); } }