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: 450968 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 3B41E140079 for ; Tue, 17 Mar 2015 23:23:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932131AbbCQMWp (ORCPT ); Tue, 17 Mar 2015 08:22:45 -0400 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]:47322 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbbCQMWm (ORCPT ); Tue, 17 Mar 2015 08:22:42 -0400 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 Cc: linux-kernel@codethink.co.uk, Ben Dooks , Linux ARM Kernel list , Linux Kernel Mailing List , Bjorn Helgaas , Linux PCI List 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 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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 Acked-by: Bjorn Helgaas --- 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"