From patchwork Fri Sep 24 17:05:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516165 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 056B6C433F5 for ; Fri, 24 Sep 2021 17:11:18 +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 CD1A260EE9 for ; Fri, 24 Sep 2021 17:11:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CD1A260EE9 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=nUhm3BZmSjO2TvxfrfTZEozanMS8NH+dqL3u5uSJJzA=; b=2oVdZVpol0nNzf iRoZLpKnAqcg64JU4TSUauEx3+pJvXIUmTcW1AL8UV4ApBBHumlnzIwsjbJWZtzB058AGNbt6eHHH Q4Xf1gsvaOTJa08cbkWqrgXKr0PBViUb1N29KWjFniC9lJkPkTsdar0xt9JP+elNIktAueB/Pf/Is xjT808BhhY4WO4bRzz/a2Ne7D8JEr6qAMAeuO1avFhHXCWSditlNyec2ZkuP9T5tgEGzfv1jbqrwF OdYgw5ixyPndzXvgXrbBdIpUkyaQqsgcpFdFKi3KHYT3MA18CQkcF7zQDqWOpbEgEDhWw6fziufVp 1ySzUDk5/TQPg270RtuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTohW-00FBJw-8H; Fri, 24 Sep 2021 17:09:31 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofG-00FASQ-NQ for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:12 +0000 Received: by mail-pj1-x102e.google.com with SMTP id pf3-20020a17090b1d8300b0019e081aa87bso8047838pjb.0 for ; Fri, 24 Sep 2021 10:07:10 -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=eJqOiaR2jHtpg9+BBO4LSB6AnAnZl/L7fEFp553mOqY=; b=ijT76Pw0UGcRTUFjFc0uMiNrNCAt6p5G16afIfJ/2k368lKeRryhqGQuQT5I2jCr5y IBrne0HiGhP81b/hthWHjgQBbCxjvQvm6IxABJL8vz2SkHZZR8hRi0+ry31F9/JaesmI CftbtQijSSGsdf/vPnE4zExUMzIQ11MnhBle0TOkxT1iIZN2iADjU4Ek8TlXjNLiCHbk 0GpNWE5dvSFws1OM1VeHCLtBhncQu6TPU5MEvCrMrsro+kh4oFQ8Q9h98gUgoWHhuESq orSq0FvVlFpKkjNEZeQYH7hwL1sUr/9k8Q/oBlPFtP6XPpjfdoKSYzgHlOdqzsBb8IUy LAjA== 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=eJqOiaR2jHtpg9+BBO4LSB6AnAnZl/L7fEFp553mOqY=; b=GLcS5abBY2ia11zqaaGT8qpo4k94lyDs5GS7HFfhxLMJjVlB7N2F1U1ccNwCtaKJmf hMQnJzYrLmRQJP9exswkocsI5ANC/7D+ytUa+YVRUVaJC7qEz1qVZjucu6/ZHtjACxHm 4GizF9wuUMpOAyPOp8CtHccmmjzblR1SpJkKCao2Zox7qf1T+N6+vrgyhLrHGCqf6EmD LGDLseaR1lPtKxNK9961j7s2dcOHTP2SAKrZiDY4y9YQNMKsKnO1Wb4oYFviB6c1Zxyl ZDLQQmCqSFKKOgD0k4HdgQgRgs6e7U02bul9rbaDdqcS/1TvYlQWEdJaqSvQMrrNpGQj 6fOQ== X-Gm-Message-State: AOAM533E2oN5WSkBCtB2E2ifQIrLLd5PuizhcQTRzphEuc7MikYGRDSt TJV7MtpsIw96CRcjz/Xi2xQ= X-Google-Smtp-Source: ABdhPJxrbEnCCSD3RpEkz9KvGEjt5zfKk76JXZjw55DyrOHy2ROe+ry2Qanz0Zvq8kaMg4GlP1w8Uw== X-Received: by 2002:a17:90a:cb14:: with SMTP id z20mr3446786pjt.230.1632503229567; Fri, 24 Sep 2021 10:07:09 -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.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:09 -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 09/11] irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER Date: Fri, 24 Sep 2021 10:05:44 -0700 Message-Id: <20210924170546.805663-10-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_100710_789677_1569E210 X-CRM114-Status: GOOD ( 17.27 ) 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-bcm7120-l2.c | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index dfe54bf9b35f..c7320bed5668 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -123,7 +123,9 @@ config BCM7038_L1_IRQ select GENERIC_IRQ_EFFECTIVE_AFF_MASK config BCM7120_L2_IRQ - bool + tristate "Broadcom STB 7120-style L2 interrupt controller driver" + depends on ARCH_BRCMSTB || BMIPS_GENERIC + default ARCH_BRCMSTB || BMIPS_GENERIC select GENERIC_IRQ_CHIP select IRQ_DOMAIN diff --git a/drivers/irqchip/irq-bcm7120-l2.c b/drivers/irqchip/irq-bcm7120-l2.c index f23d7651ea84..c1676419dee7 100644 --- a/drivers/irqchip/irq-bcm7120-l2.c +++ b/drivers/irqchip/irq-bcm7120-l2.c @@ -347,8 +347,9 @@ static int __init bcm7120_l2_intc_probe_3380(struct device_node *dn, "BCM3380 L2"); } -IRQCHIP_DECLARE(bcm7120_l2_intc, "brcm,bcm7120-l2-intc", - bcm7120_l2_intc_probe_7120); - -IRQCHIP_DECLARE(bcm3380_l2_intc, "brcm,bcm3380-l2-intc", - bcm7120_l2_intc_probe_3380); +IRQCHIP_PLATFORM_DRIVER_BEGIN(bcm7120_l2) +IRQCHIP_MATCH("brcm,bcm7120-l2-intc", bcm7120_l2_intc_probe_7120) +IRQCHIP_MATCH("brcm,bcm3380-l2-intc", bcm7120_l2_intc_probe_3380) +IRQCHIP_PLATFORM_DRIVER_END(bcm7120_l2) +MODULE_DESCRIPTION("Broadcom STB 7120-style L2 interrupt controller driver"); +MODULE_LICENSE("GPL v2");