From patchwork Tue Sep 28 18:21:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12523493 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 04801C433FE for ; Tue, 28 Sep 2021 18:26:12 +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 CA2C06137E for ; Tue, 28 Sep 2021 18:26:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CA2C06137E 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=qztGlhJMB9Km7Yp6PpvERY24qCHnd73E6qGjtptqDQw=; b=4I6cGLSTyODy2c wgkId9j0a3AU1n3Tx9/CfaRwU6VBf5IJgs724c8zq1tphtRHIj0uYXTfn4eXGl4PlAmV0CBLQGyl1 eB8uX+ZHa7wXSNrmt34sbZUBdEfgU0uCPPKk/B/h2ubW4zJsgjQMMiMZ0zv8n/4zvRgh2g/AB3Uqo skSfKBkZeWWzAucULIpgSs2jm5T2156XKkzN6op4YdT3myIbHSv4oj07cR8UQH5nFNRH797Kzw33Z aj4laFhnlJjUwift8d4dOmV7fyowXDkNU3o9e85V2kLQwuyMYDgfP9Ydof3cICYjR6yTRAMDnms52 V0XncVv8P7zTOSk9MvIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVHly-008Ono-OZ; Tue, 28 Sep 2021 18:24:11 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVHkN-008OBa-Mo for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 18:22:33 +0000 Received: by mail-pj1-x1034.google.com with SMTP id k23so15595726pji.0 for ; Tue, 28 Sep 2021 11:22:31 -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=IqTvFkxEB42F4FY7x5fTTUp3BY0gcheCImqFREsoxYU=; b=kTsIT0G/KrDrPn3Onne9wHI4gnAg3lQlkwbjw7aa0F/HMPSOLZJa/XgGOqjP0TjzAF DAMbGwSd3v5ymTWI8TAmhNv+th60xRAfzESFUUuy/yiQzB5d8PlCveNViGKPzP+mADWV BManhIsK/G+AZd1IQOyXfLrb41jT9p+gNOOxsHH0bXM879O2/Fti2Ur77REqP3gZIpqA iP3YZgRpqKIbHeJtb/OpyBhCvGo8/ylIQ9n+vWolccnS58ZM1dXtlr8PvqtSvtCkv/oR kYIQ19Cu3NpDkjCR3x3iwrWgWj9imMsB4Qn8tvRT2mtrx8XSrv4dIAHYojorbvR7j7rK bm4g== 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=IqTvFkxEB42F4FY7x5fTTUp3BY0gcheCImqFREsoxYU=; b=ZG8j2xC3ryIBOW0U4BKJEHsbppRiJUfSJb9/9kgjeYodDYqYq4VYiZayFX0UPyYb9j CW/eTLUjCxoer0KTDRgU6ez/aOLnHGuVzOAG3AS+IbQGx15k/4iHr7HMzc69vVml9FiQ QUj2VMM7dspCIZIbQeyAu4Ym1f+AjzIKvvzM1xYeev2g7Loy63EeTlZN7M0G4yjXYE8/ B/lSwttos2Lna1RQs+iuICHbaNtClsX8dkcZjyRuHnlgYYXZhBXhWAfeRevgbgCdK45z KC+f8A/PVRAg8dve3Qrjvj2bcV12eJ64CbYp2ZYu3mxYjDFkV6saPaLK46FzDX6vcwXn 8d1Q== X-Gm-Message-State: AOAM533hcPixCE5H8IH/nNizhlLNtaQEJTM9xPVpp9KqqSxFa7HncjYZ 5dertks084rDt7snfbXBIpU= X-Google-Smtp-Source: ABdhPJwix3fY+AASgKFQmC3akUcOB24p3w4BvdQVDgtUUJYIy85NIPLXbkNDpb+JhP9GBUaUeHdX1Q== X-Received: by 2002:a17:902:64d6:b0:13e:59fe:8124 with SMTP id y22-20020a17090264d600b0013e59fe8124mr710244pli.89.1632853350732; Tue, 28 Sep 2021 11:22:30 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x19sm20855288pfn.105.2021.09.28.11.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 11:22:30 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , Thomas Gleixner , Marc Zyngier , Rob Herring , Frank Rowand , linux-arm-kernel@lists.infradead.org (moderated list:ARM SUB-ARCHITECTURES), linux-mips@vger.kernel.org (open list:MIPS), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH v3 06/14] irqchip/irq-bcm7038-l1: Switch to IRQCHIP_PLATFORM_DRIVER Date: Tue, 28 Sep 2021 11:21:31 -0700 Message-Id: <20210928182139.652896-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928182139.652896-1-f.fainelli@gmail.com> References: <20210928182139.652896-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-20210928_112231_843239_A0DD216C X-CRM114-Status: GOOD ( 17.02 ) 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 357570dd8780..a62b96237b82 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -455,4 +455,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");