From patchwork Tue Feb 26 15:25:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 2185961 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 D92B4DF215 for ; Tue, 26 Feb 2013 15:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759736Ab3BZPb5 (ORCPT ); Tue, 26 Feb 2013 10:31:57 -0500 Received: from mail-da0-f45.google.com ([209.85.210.45]:58365 "EHLO mail-da0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759607Ab3BZPby (ORCPT ); Tue, 26 Feb 2013 10:31:54 -0500 Received: by mail-da0-f45.google.com with SMTP id v40so2066710dad.18 for ; Tue, 26 Feb 2013 07:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=/JK+EbvANdU6jlEwdC1+ajtvlMV/8d9oKyukJuUYRok=; b=O9qJuJVW5D+7OiWKk4OGV1mrAUgh4eItB/3pqhsQAHiHjx/T+UT1t1JM4zpHV46eB9 CUkY4ygFz2KN+jhnKWs2jFN+EQbluo0oG1QrrRZQnWjcbkq2pZUGizDLo3PtTJs4R6f/ bYofm1tzqTlvoN6/cMB/+CqshFH23F4HqoS4eIZv3oqhEqqyXyFB5a0xMFfUz9wjcgZ7 uQOZzELprgKn5r4lgYV/wKExFB/1IytUGBFSCBSXKVWNSsqEMfTxbuoVSKAl0TizIGcj gEyMgRRXGlbMPCSnbSq6TFl/O40lx+x6zLlhze7rmB2nR8pOnakJekoDjHSTJnfgoKuC PrzA== X-Received: by 10.66.162.133 with SMTP id ya5mr2267857pab.104.1361892714192; Tue, 26 Feb 2013 07:31:54 -0800 (PST) Received: from localhost.localdomain ([114.250.77.63]) by mx.google.com with ESMTPS id gg7sm1229055pbc.45.2013.02.26.07.31.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Feb 2013 07:31:53 -0800 (PST) From: Jiang Liu To: Bjorn Helgaas , "Rafael J . Wysocki" Cc: Jiang Liu , Yinghai Lu , Yijing Wang , Jiang Liu , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Greg Kroah-Hartman , ACPI Devel Maling List , Toshi Kani , Myron Stowe , "Rafael J. Wysocki" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH v8 08/13] PCI, x86: implement pcibios_{add|remove}_bus() hooks Date: Tue, 26 Feb 2013 23:25:48 +0800 Message-Id: <1361892353-14786-9-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1361892353-14786-1-git-send-email-jiang.liu@huawei.com> References: <1361892353-14786-1-git-send-email-jiang.liu@huawei.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Implement pcibios_{add|remove}_bus() hooks for x86 platforms. Signed-off-by: Jiang Liu Signed-off-by: Yijing Wang Cc: Yinghai Lu Cc: "Rafael J. Wysocki" Cc: Toshi Kani Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Myron Stowe Cc: linux-kernel@vger.kernel.org Cc: x86@kernel.org --- arch/x86/pci/common.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 505731b..79f81f0 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -170,6 +171,16 @@ void __devinit pcibios_fixup_bus(struct pci_bus *b) pcibios_fixup_device_resources(dev); } +void pcibios_add_bus(struct pci_bus *bus) +{ + acpi_pci_add_bus(bus); +} + +void pcibios_remove_bus(struct pci_bus *bus) +{ + acpi_pci_remove_bus(bus); +} + /* * Only use DMI information to set this if nothing was passed * on the kernel command line (which was parsed earlier).