From patchwork Fri Sep 24 17:05:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B797FC433EF for ; Fri, 24 Sep 2021 17:10:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 850E060EE9 for ; Fri, 24 Sep 2021 17:10:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 850E060EE9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HPNdjE/ThPsmDms+eLHuZR2+4tRbxMhbry/VoR7L994=; b=IYn+mE3Pt7WZ4t sGYCGoVAADKMEorNnBEWwrGUtcpGznbwmzIjFpp9HcdNVaI+z9964dJ6SPYqb87+KH9QI/8lGjPVO CARMgOpO9rimAL9tkX8r61EC4mKjl1EV1+Iit0oVrPSaiiRKKZwwUsJ0cCbGF/NMey68Cd4YrA8r8 Zxk1nC+hNdrU8f3dWj3B0lE0NtJYPOf9QnhhEQHP7FnPwPEpNtVDtb0xfPENdkmCqqipg1UidXFZp Oq/dH6zEWueMUEWM8fC796DhNCMLFtVpjcRe4Y29fKAVkaOpeSGSt++Z7hIaM/CtnUJXstzYAcK8b eYojstE2wQxNFiWLDtOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofq-00FAc3-QW; Fri, 24 Sep 2021 17:07:47 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof6-00FAON-IX for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:02 +0000 Received: by mail-pj1-x1032.google.com with SMTP id il14-20020a17090b164e00b0019c7a7c362dso8047048pjb.0 for ; Fri, 24 Sep 2021 10:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NSYiGK57G6dx4SCVfIKz/VqfWjkODoJWY0CRhuUYqa0=; b=VKf+KiXEVgf8y5ZxFuT4bIUicXOGoJMOD1tqP7Nc1TZB9ij6Vf3ruzCWNW02Hzhk/N N9hwdbhuVXyxLnwo88cKBf4wGPMN7kec1codqL2+01H08g6a9cGNGQAJsW+WU0YDAGHX PJRXz23RPN14hhMETRtsqPHUJNOgLCFv5kbGsXRHW8P8TJHxEzgcEpoOTxzeaZjdkxxr ovziSoE7z7aenFOVUGdK2VT/SbMis2yPfHCCZzmbwV+26yUMeYOmwdbu4f1fuqas5rH6 gNzPNLjy5TgLMpnKQA8NXXaNyqpiRHxSekjgofPPjWSlHb8PpFL8PMEJrdnevC2TAAI6 nV2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NSYiGK57G6dx4SCVfIKz/VqfWjkODoJWY0CRhuUYqa0=; b=50nnrBFcAeaFvLn5cdabMb1nMiN4YfmKp0m5l+3elFNQbklrdULmkacDrFRZnOYQWP 41mCdfLn50UQxQY1/QvEMiocEBXeaxngd6Kve0jmMD2zUaNYBmNFLsOlgOTSjFkEWCBp nsQhF35zx3MNv5FjsrFpNXy1TiYrm8STDZe8z6pjfwiXTLIGa4ZZa7RIGy5UAlmNYyCk 2kDXXpYcMT73SjqapNSGDVOrndNvlPgb5tV8HUKzQkNDFwkWANOkgtBtWNmxPRaTaOJQ mqXIi7qwNJPnL3WwFd8TYE90begEIJuI1cvVuwSj9sVudItT7/9HK9fDWjVRQSL84WxH +JWQ== X-Gm-Message-State: AOAM5300mWJ4FczqWqZByJs2137B27zX9KSB8K6aBQRLQRHsGFn5du9c ScaUOQb5oLL1w0+O1IoAlqI= X-Google-Smtp-Source: ABdhPJxkKpI23LL6xymzcWOXEzd12oGL/wfBBT0Vy18Wbxbu4pOv4iGqWb2tl0gfdW0Hjh5sX8A5bw== X-Received: by 2002:a17:902:b717:b029:11a:fae3:ba7c with SMTP id d23-20020a170902b717b029011afae3ba7cmr10013612pls.28.1632503219371; Fri, 24 Sep 2021 10:06:59 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k22sm9659312pfi.149.2021.09.24.10.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:06:59 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Russell King , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Catalin Marinas , Will Deacon , Yoshinori Sato , Rich Felker , Thomas Gleixner , Marc Zyngier , Rob Herring , Frank Rowand , Ard Biesheuvel , Mike Rapoport , Linus Walleij , Andrew Morton , Geert Uytterhoeven , Arnd Bergmann , Guenter Roeck , Kefeng Wang , Mark Rutland , Andrey Konovalov , Anshuman Khandual , Valentin Schneider , Ingo Molnar , Peter Zijlstra , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-sh@vger.kernel.org (open list:SUPERH), linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH 04/11] irqchip/irq-bcm7038-l1: Switch to IRQCHIP_PLATFORM_DRIVER Date: Fri, 24 Sep 2021 10:05:39 -0700 Message-Id: <20210924170546.805663-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210924170546.805663-1-f.fainelli@gmail.com> References: <20210924170546.805663-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210924_100700_651336_7A22DFD1 X-CRM114-Status: GOOD ( 17.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allow the user selection and building of this interrupt controller driver as a module since it is used on ARM/ARM64 based systems as a second level interrupt controller hanging off the ARM GIC and is therefore loadable during boot. Signed-off-by: Florian Fainelli --- drivers/irqchip/Kconfig | 4 +++- drivers/irqchip/irq-bcm7038-l1.c | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 4d5924e9f766..3022f6137096 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -115,7 +115,9 @@ config BCM6345_L1_IRQ select GENERIC_IRQ_EFFECTIVE_AFF_MASK config BCM7038_L1_IRQ - bool + tristate "Broadcom STB 7038-style L1/L2 interrupt controller driver" + depends on ARCH_BRCMSTB || BMIPS_GENERIC + default ARCH_BRCMSTB || BMIPS_GENERIC select GENERIC_IRQ_CHIP select IRQ_DOMAIN select GENERIC_IRQ_EFFECTIVE_AFF_MASK diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index a035c385ca7a..80e74cf3e165 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -484,4 +484,8 @@ static int __init bcm7038_l1_of_init(struct device_node *dn, return ret; } -IRQCHIP_DECLARE(bcm7038_l1, "brcm,bcm7038-l1-intc", bcm7038_l1_of_init); +IRQCHIP_PLATFORM_DRIVER_BEGIN(bcm7038_l1) +IRQCHIP_MATCH("brcm,bcm7038-l1-intc", bcm7038_l1_of_init) +IRQCHIP_PLATFORM_DRIVER_END(bcm7038_l1) +MODULE_DESCRIPTION("Broadcom STB 7038-style L1/L2 interrupt controller"); +MODULE_LICENSE("GPL v2");