From patchwork Fri Apr 12 15:44:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 2436901 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7C6413FD1A for ; Fri, 12 Apr 2013 15:49:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756716Ab3DLPrV (ORCPT ); Fri, 12 Apr 2013 11:47:21 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:42417 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752884Ab3DLPrT (ORCPT ); Fri, 12 Apr 2013 11:47:19 -0400 Received: by mail-pd0-f177.google.com with SMTP id u11so1467128pdi.22 for ; Fri, 12 Apr 2013 08:47:18 -0700 (PDT) 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=dkxl9c1dkXtQiXOd7tmqGkKVO13C2Sc2ADI3gfZUzqQ=; b=qIxxus4dXn5k2vNZScWV3FcxnTWseTGiaARjA/TeA8j5xATc3hjONSDDAG6j/uwH3a A7mILMBEcFeu4WAGZ+NGiLH1TE67D+lEU4BF3QHsu+MtawhbTnV1slKR6l1fy7SdmXoE y0vS18O4dn5tMJ7B1gH1QgMHnovwZH3SyeESDnPeQUPJn6IYa/bxMxFC1lm0jCi+K1KN dX3XKVVva8x7IrybPAf1+CtEQEgU9pnvDy2Vl18S4zLPJxjVg8IZRuZAOmjv75F/fmm8 QlPG0u6SzYxm8EtHATRprY5+mdbNpRb5kdfGy472Q0fLukdL+uk54/l1zXSU08uGzhgb DeXw== X-Received: by 10.68.43.35 with SMTP id t3mr15558050pbl.202.1365781638381; Fri, 12 Apr 2013 08:47:18 -0700 (PDT) Received: from localhost.localdomain ([114.250.74.212]) by mx.google.com with ESMTPS id wz9sm9048741pbc.5.2013.04.12.08.47.09 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Apr 2013 08:47:17 -0700 (PDT) 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 v9 09/16] PCI, x86: implement pcibios_{add|remove}_bus() hooks Date: Fri, 12 Apr 2013 23:44:23 +0800 Message-Id: <1365781470-32379-10-git-send-email-jiang.liu@huawei.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1365781470-32379-1-git-send-email-jiang.liu@huawei.com> References: <1365781470-32379-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 901177d..305c68b 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 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).