From patchwork Tue May 10 15:20:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 9059591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 626CDBF29F for ; Tue, 10 May 2016 15:26:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 19EE620148 for ; Tue, 10 May 2016 15:26:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 43C21200D0 for ; Tue, 10 May 2016 15:26:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b09Wn-00011R-Qr; Tue, 10 May 2016 15:24:53 +0000 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b09Sf-0004sX-95 for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2016 15:20:40 +0000 Received: by mail-lf0-x230.google.com with SMTP id j8so18704097lfd.2 for ; Tue, 10 May 2016 08:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oww6DiQTVAe+qg35KfMkGXPCAzuTFIIvw02PdtDW3Dw=; b=t09eDcvn2X9P1cBU0L+HADPtjqFURFyZeiYu1iAiYioXtCV12gPP3J8VG0chRMTiKC TCHLybUD8ElDn/wLiSlg9hZzENJ8BFVLDFfRvnYcLb3QUGeb4jWW6a+9C81jKrPSUizp Ch8i4fZOyPm500yQnWPrXTCY1XL1lCkpNKBnrejnO+TAQKuPFLJ4zPHPlzqj+EFpKPsy FUl/N3clDm5vMzcATvrvgdJ2Cku2Lk24OJbeG8yrMzS8Fy5FxfKlZm+gf8F/ueFZTGJ/ HDsJWBe3l+hwJRmw+r9luNl5b1UWh5XdnwDvMx6jT0yZMNg6u1k53ow1Qu4adQDgwc4j mMqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oww6DiQTVAe+qg35KfMkGXPCAzuTFIIvw02PdtDW3Dw=; b=kjy++egGLxS3p/xEFBOw2DEjZNtP3iqHi+g31YbHTB2X3fPmQVtjYxjutl9o+mfz+1 yZBgW9O6Ij61M0VkaI6DF8jnxaxPh0+WrLmDYML7WvjmCy54OWqEYbJUAMtjCdfHj6R6 TDCqmkDSvv2Ju4fMMJ2ivNYjbwWHv0WboVr4OpU6QMVong8mo+N0/OaLRYJXh9wqzdiJ nUIkJ2pXBiv0Aphb9vlVlmJyB7f7XZATVntVMUfQvceIADzAV1tgOVHiFD1KGvDaXg7k Q8p4ck5uwKatBTTWyMcVJAViud5u8JCDCzuIkmQlc9/pWOOvR1yi8aJ/od9y3oA34Dko pjzQ== X-Gm-Message-State: AOPr4FXGhyYSAJZdbz/muK7XU/Hr6tvH7FBCZzMnIis1dxnRg8vrP5DJxp0ZxGoYFY9cCw== X-Received: by 10.112.161.200 with SMTP id xu8mr18005195lbb.106.1462893615534; Tue, 10 May 2016 08:20:15 -0700 (PDT) Received: from tn-HP-4.semihalf.local (cardhu.semihalf.com. [213.17.239.108]) by smtp.gmail.com with ESMTPSA id s194sm468002lfs.40.2016.05.10.08.20.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 May 2016 08:20:14 -0700 (PDT) From: Tomasz Nowicki To: helgaas@kernel.org, arnd@arndb.de, will.deacon@arm.com, catalin.marinas@arm.com, rafael@kernel.org, hanjun.guo@linaro.org, Lorenzo.Pieralisi@arm.com, okaya@codeaurora.org, jchandra@broadcom.com Subject: [PATCH V7 10/11] arm64, pci, acpi: Provide ACPI-specific prerequisites for PCI bus enumeration. Date: Tue, 10 May 2016 17:20:00 +0200 Message-Id: <1462893601-8937-11-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462893601-8937-1-git-send-email-tn@semihalf.com> References: <1462893601-8937-1-git-send-email-tn@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160510_082037_837165_E92ED804 X-CRM114-Status: GOOD ( 11.01 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jcm@redhat.com, linaro-acpi@lists.linaro.org, linux-pci@vger.kernel.org, dhdang@apm.com, Liviu.Dudau@arm.com, ddaney@caviumnetworks.com, jeremy.linton@arm.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, robert.richter@caviumnetworks.com, cov@codeaurora.org, Suravee.Suthikulpanit@amd.com, msalter@redhat.com, wangyijing@huawei.com, Tomasz Nowicki , mw@semihalf.com, andrea.gallo@linaro.org, linux-arm-kernel@lists.infradead.org, liudongdong3@huawei.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ACPI requires to run acpi_pci_{add|remove}_bus while new PCI bus is created. This allows to do some ACPI-specific additional configuration, like PCI hotplug slot enumeration. In order to fulfill these requirements, we implement arch-specific pcibios_{add|remove}_bus calls and call acpi_pci_{add|remove}_bus from there. Signed-off-by: Tomasz Nowicki To: Catalin Marinas To: Lorenzo Pieralisi To: Will Deacon To: Arnd Bergmann --- arch/arm64/kernel/pci.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 15109c11..eeec5f6 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -17,6 +17,7 @@ #include #include #include +#include #include /* @@ -64,6 +65,16 @@ int pcibios_alloc_irq(struct pci_dev *dev) return 0; } +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); +} + /* * raw_pci_read/write - Platform-specific PCI config space access. */