From patchwork Tue Oct 9 03:03:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 190175 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 BE1362C024D for ; Tue, 9 Oct 2012 14:04:34 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754795Ab2JIDEe (ORCPT ); Mon, 8 Oct 2012 23:04:34 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:1092 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754746Ab2JIDEd (ORCPT ); Mon, 8 Oct 2012 23:04:33 -0400 Received: from 172.24.2.119 (EHLO szxeml211-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AQF49082; Tue, 09 Oct 2012 11:04:29 +0800 (CST) Received: from SZXEML410-HUB.china.huawei.com (10.82.67.137) by szxeml211-edg.china.huawei.com (172.24.2.182) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 9 Oct 2012 11:03:51 +0800 Received: from localhost (10.135.76.84) by szxeml410-hub.china.huawei.com (10.82.67.137) with Microsoft SMTP Server id 14.1.323.3; Tue, 9 Oct 2012 11:03:41 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , Hanjun Guo , , Yinghai Lu , Yijing Wang Subject: [PATCH 6/7] PCI, sgi: disable ARI forwarding for sgiphp Date: Tue, 9 Oct 2012 11:03:23 +0800 Message-ID: <1349751804-7476-7-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/sgi_hotplug.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c index f64ca92..8d02367 100644 --- a/drivers/pci/hotplug/sgi_hotplug.c +++ b/drivers/pci/hotplug/sgi_hotplug.c @@ -553,6 +553,7 @@ static int disable_slot(struct hotplug_slot *bss_hotplug_slot) if (dev) { sn_bus_free_data(dev); pci_stop_and_remove_bus_device(dev); + pci_configure_ari(dev, false); pci_dev_put(dev); } }