From patchwork Tue Mar 17 12:22:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 6031601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8C7C89F2A9 for ; Tue, 17 Mar 2015 12:25:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C702320373 for ; Tue, 17 Mar 2015 12:25:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D595A2035C for ; Tue, 17 Mar 2015 12:25:52 +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 1YXqWa-0001oF-1y; Tue, 17 Mar 2015 12:23:08 +0000 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YXqWX-0001Hk-BZ for linux-arm-kernel@lists.infradead.org; Tue, 17 Mar 2015 12:23:06 +0000 Received: from localhost (localhost [127.0.0.1]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTP id EA51B460351; Tue, 17 Mar 2015 12:22:40 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at ducie-dc1.codethink.co.uk Received: from ducie-dc1.codethink.co.uk ([127.0.0.1]) by localhost (ducie-dc1.codethink.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2WWgvSUU6Avb; Tue, 17 Mar 2015 12:22:34 +0000 (GMT) Received: from rainbowdash.ducie.codethink.co.uk (rainbowdash.dyn.ducie.codethink.co.uk [10.24.2.99]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPS id 8FF9E460809; Tue, 17 Mar 2015 12:22:34 +0000 (GMT) Received: from ben by rainbowdash.ducie.codethink.co.uk with local (Exim 4.84) (envelope-from ) id 1YXqW2-0000O4-BQ; Tue, 17 Mar 2015 12:22:34 +0000 From: Ben Dooks To: linux@arm.linux.org.uk Subject: [PATCH] ARM: add PCI hotplug support Date: Tue, 17 Mar 2015 12:22:32 +0000 Message-Id: <1426594952-1456-1-git-send-email-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150317_052305_630293_A1899A19 X-CRM114-Status: GOOD ( 12.12 ) X-Spam-Score: -0.0 (/) Cc: Linux PCI List , linux-kernel@codethink.co.uk, Linux Kernel Mailing List , Ben Dooks , Bjorn Helgaas , Linux ARM Kernel list X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 Hotplug on PCIe should work with ARM, however the necessary PCIe hotplug is not availale as the menu items for PCI hotplug have not been included. Add the include of PCI hotplug support to the ARM main Kconfig so that it can be selected. The only issue that was found during this is that the PCI code did not assign interrupts properly to newly probed devices. This will need to be fixed for any interrupt capable devices. This has been tested on a Marvell 88F6281 with a TI XIO3130 PCIe bridge (with hotplug enabled) and fixes for IRQ assignment added. Signed-off-by: Ben Dooks --- CC: Linux ARM Kernel list CC: Russell King CC: Linux Kernel Mailing List CC: Bjorn Helgaas CC: Linux PCI List --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9f1f09a..4574ab4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1302,6 +1302,7 @@ config PCI_HOST_ITE8152 select DMABOUNCE source "drivers/pci/Kconfig" +source "drivers/pci/hotplug/Kconfig" source "drivers/pci/pcie/Kconfig" source "drivers/pcmcia/Kconfig"