From patchwork Fri Sep 24 17:05:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516149 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 B235DC433EF for ; Fri, 24 Sep 2021 17:10:14 +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 8322E61251 for ; Fri, 24 Sep 2021 17:10:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8322E61251 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=XJLdL38MmLdbPf42h40+woOrnarAyt4zQNMylGtscWs=; b=SV3oCMetSpk67X gPPRgr/fovjlmWhOESpzObuU/CDCwaVOYSWAcO9B2SwMLC2DwVrDZ1LGr1coPlv7Cz9kv/Q3w99Kt St2qIMxK06AdKKSm4keKZwV/UYCuFuupiXY9bGoP0NswYvLygpi78m5iOj388j52scHz7pTJkWPt+ KmJESOH+V6+8/H2iGhk58hU4Ey8C6Nq7Jqzcrn3c9s2I259Tw4dMLbEZT7Ur+SRsZz7dF2uP6tBo6 yaVDUghI5Ey2a6NSzwm82rLPROahDkYDhzt2z3ZSm47wABAcSaKRtMV3vXfu5OGi37qWTu5VjNskS V9BJ7oddjZrqCB1fwdBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofG-00FASF-7o; Fri, 24 Sep 2021 17:07:10 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof0-00FALi-AV for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:06:56 +0000 Received: by mail-pj1-x102b.google.com with SMTP id dw14so7421825pjb.1 for ; Fri, 24 Sep 2021 10:06:53 -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=KexeGIrvAziDcYoUK48mJY3zTzuUlfhpYMgePd+knLE=; b=d8ZXYTgT9nfLRctbFMlW9oJzgeQzv0JrVDIRcAwL3P0PEc9aidW19XBGd4C4X1wyKD nYtz7N9xS7MLTtJQSEBccaAYqpEwdKaBuG0bM7Eig2hxYCGOXqDUyP9XA4BSvLq6bNSA tYK5pYiZQqKXU3xi5MFTdy5ohgxXJARDYuxUU4Z3m9RV5+cTnR4o9aG5BBRtGC8JaMiv Cr1UldrJEiOu1/N4uqi0EPcqBOjseFv1G03qwa+Ror/iZdEu+7OSPl8ei99fOgvKlk4G 1at+HRJVsvylppI2Y1HSyAH+T9gDwRNI1upwE3i6ETYjzQf/DWvm9khDutQzeCib/U1K ZqAw== 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=KexeGIrvAziDcYoUK48mJY3zTzuUlfhpYMgePd+knLE=; b=roLoWjC+Am60JXgKiAN+if/I+jKgOPz/TBeVJbw893BRCXSQEtCV6e1SSa2rC/627l a5cNTy7SfpJWDSBRQzClOL09EhCGbqJhFvJaElTIlxzYPz+44VrosoMFD7sFEL6SeOZ/ TyKEqc4sP9HnLy/QToFPQhBllgeJtkP/BjifmAF1U/Vi6uQXdwhxjjg8hfM0OUE8G16y nK3+8XUfNh71eFxRgnjCn6wJQXiZ7q09ShNiIeg76/8EHPOy+aMI4ERuZE42tzaRGDrK XFbRmn0cAm/Kvvx3eJEb6V8KWztoQPgfFSgvb7F9EjmLe5CzoQVSRp793zfQbqgI7qOF b+Mg== X-Gm-Message-State: AOAM530nJMKxefZQn9CzFunhw33IA1ozC/3GCIeWL0EG1wmI5n7bqWmz BGaq5pz4QMOsaXFcNfNpIAA= X-Google-Smtp-Source: ABdhPJzJXERWobi3uw9D7vhpYswwOefbO0WzvR9hp2OR4tX1I7NfOw3pna4NkY/xgW9i8qQLlqhwuQ== X-Received: by 2002:a17:902:6bc6:b0:13b:8622:93ed with SMTP id m6-20020a1709026bc600b0013b862293edmr10039364plt.87.1632503213145; Fri, 24 Sep 2021 10:06:53 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:06:52 -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 01/11] arch: Export cpu_logical_map to modules Date: Fri, 24 Sep 2021 10:05:36 -0700 Message-Id: <20210924170546.805663-2-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_100654_383584_AD87CC32 X-CRM114-Status: GOOD ( 15.07 ) 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 In order to allow drivers/irqchip/irq-bcm7038-l1.c to be built as a module and usable in GKI, export cpu_logical_map or __cpu_logical_map towards the modules. Signed-off-by: Florian Fainelli --- arch/arm/kernel/setup.c | 1 + arch/arm64/kernel/setup.c | 1 + arch/sh/kernel/smp.c | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 284a80c0b6e1..abd5c999bdb2 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -585,6 +585,7 @@ void notrace cpu_init(void) } u32 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = MPIDR_INVALID }; +EXPORT_SYMBOL(__cpu_logical_map); void __init smp_setup_processor_id(void) { diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index be5f85b0a24d..d8f796ae13c4 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -290,6 +290,7 @@ u64 cpu_logical_map(unsigned int cpu) { return __cpu_logical_map[cpu]; } +EXPORT_SYMBOL(cpu_logical_map); void __init __no_sanitize_address setup_arch(char **cmdline_p) { diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index 65924d9ec245..8f16cfaad238 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -30,6 +30,7 @@ int __cpu_number_map[NR_CPUS]; /* Map physical to logical */ int __cpu_logical_map[NR_CPUS]; /* Map logical to physical */ +EXPORT_SYMBOL(__cpu_logical_map); struct plat_smp_ops *mp_ops = NULL; From patchwork Fri Sep 24 17:05:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516151 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 B25FFC433EF for ; Fri, 24 Sep 2021 17:10:17 +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 8176E61250 for ; Fri, 24 Sep 2021 17:10:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8176E61250 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=I9wjiFl4IB58Ss7kRGCHOFqg5kVEpW+ih39MIQqbhss=; b=zsQbOVmRvNxqLv QsWevIuBYb7kdN9RzbemGKmRtvuzC2ajzHb3KpHvsXKlPxt35PgbglD3IwOYeMsXikL/dV49BTHBY xp88h3TzZq5LrUI2yAvB+kdAYHJlH3GcyUw7TZI8VdR1nPunpR1GhTN71pnaVzXiaaFyFipE1tbTO qBrILyina2UOU3gFyS2NeQzFKnRSnRPgsG1DwRybzZ7tr9pk7B03k2Kc9CXmuyo4uwNnWMTF/OQWG VkB9mtVhHC7PWntTlk5IZB1uiREbIl/hFLVb1Y+it/eXPaxcDZwpQvmiKx3R9gQauxE7rUF2uwQDu 3r7E/OMruKxDkQR763kQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofR-00FAW9-Rn; Fri, 24 Sep 2021 17:07:22 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof2-00FAMt-Dp for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:06:57 +0000 Received: by mail-pl1-x634.google.com with SMTP id n2so6882501plk.12 for ; Fri, 24 Sep 2021 10:06:55 -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=hAt2r11zGETPJhbWDBDQJtoDxq6DGq80xQa/wYZCvjA=; b=lff3kYOYoDs+CCWEsvmA2HuIBTzYIpIEkFnWK3y6YbOXrnQPt5ILd19qTZJcBt/nL4 3/mVv54pKrWeCTmw/u7qzfheVmu/4i2Xujwt0nmX449fE2Wz+lrxjZxNpfNc3gO3KGnh ywie+jUsQQmfK+dqLwz1nIclg89CvufeEo5qg5lA/FO2pIj+rM6G++frwAEp8sbvKQus ygKptAaGjZaCIAkFrZKHR2PVRAMrWoT3p+7cnydkN/yQkIDs8KXvL7mxQutAbBolTEhd 6nBb5pDBJHwLQkNZL27kb8nWPEYVEfdnVr/OZ4pEMCrCVKZA+lIyeOEkvaV72mNF50yy zyGA== 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=hAt2r11zGETPJhbWDBDQJtoDxq6DGq80xQa/wYZCvjA=; b=zqMutMC+/2jxXEEQOAFGr+ghWt7FzzKHu8A6Z4BER8Tu/MsXV9RrD8gMtXKYBajBJh oEXJwuxmVGOGzEG+MfChTHxldwEys/kfu6NAZ/G57hJrFwPLdi3WxQcXv/JAEuqS3W7+ JmT4tDWI3k/5kExEG0oCSqPMTeOwSCr9WOS8RNYcwA8NAzt3OvNMJhToUTgiSx1WcRBG yLDJPmH6sYC76bFpGJ/IBizRqnI34M4n91bogqetZU88oZT+V8ZYgQ2nM7WSOYH/SgHX HsNqclHtB10D+Knq41YH9Fa3L0/sMvhfP7F3kbOgox/FaWfZrZzhte2g4WB8q2cxRKXG G6DA== X-Gm-Message-State: AOAM5317zWkSeix1tg1v+1P03WNkqxZs9MSrbJuSQXUEV7Ld2dFNIYXG WCNM11cqo9Q41j1IaL4vI0U= X-Google-Smtp-Source: ABdhPJxLx4ndIFs8WwGMmBVw3tfDmXNvV2JZPukBeAlAI1kQMLB4cqYAWC7Ly9tK7SYz6iKQ2PHPPA== X-Received: by 2002:a17:902:b18b:b0:13a:354a:3e9d with SMTP id s11-20020a170902b18b00b0013a354a3e9dmr9944422plr.36.1632503215315; Fri, 24 Sep 2021 10:06:55 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:06:54 -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 02/11] genirq: Export irq_to_desc() again to modules Date: Fri, 24 Sep 2021 10:05:37 -0700 Message-Id: <20210924170546.805663-3-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_100656_492218_1EC7E904 X-CRM114-Status: GOOD ( 14.40 ) 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 In order to build drivers/irqchip/irq-bcm7038-l1.c as a module (for use in GKI), we need to export_to_desc() which is used in this snippet of code: irqd_set_single_target(irq_desc_get_irq_data(irq_to_desc(virq))); This effectively reverts 64a1b95bb9fe ("genirq: Restrict export of irq_to_desc()"). Signed-off-by: Florian Fainelli --- kernel/irq/irqdesc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 4e3c29bb603c..5bc231036042 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -352,9 +352,7 @@ struct irq_desc *irq_to_desc(unsigned int irq) { return radix_tree_lookup(&irq_desc_tree, irq); } -#ifdef CONFIG_KVM_BOOK3S_64_HV_MODULE EXPORT_SYMBOL_GPL(irq_to_desc); -#endif static void delete_irq_desc(unsigned int irq) { From patchwork Fri Sep 24 17:05:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516155 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 5B7FEC433FE for ; Fri, 24 Sep 2021 17:10:21 +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 21B0661250 for ; Fri, 24 Sep 2021 17:10:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 21B0661250 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=pG5V6Vd5dR0su1wjBLCercHONBVsrASstEKdv5Lecng=; b=afYZCBCvHBgMgl r2CRF3dXwwyuIjBrigE/TGlyMXxBmASXwRf+akemAkfX5S5Oywn4m6yRMf27RyIAUzUmscM4v9sgN e0CrUBJfAMfu1BlZOrDnLAr4ZnPf3QO3eNK1/QcQIReQ0rIV6YqTXuD7BmWR4mauEtNANK+sYilG3 /9cBt+N2LPa9phAqii0S58pqN+pDJNphR1+67kTBmbB04ca6K4JCST0DqAhdrXjobbB6A6gmlsJzJ EL9pFjh+GiI4dVUsYAXhjQhWOowrb5Vm0+QzTApLvGB2zFXsp5lrW6QcpFSrfjPAxIl2jV1kl6sO5 s5BykN3ufT2OZBkzD+sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofe-00FAYq-D0; Fri, 24 Sep 2021 17:07:34 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof5-00FANg-AN for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:00 +0000 Received: by mail-pf1-x432.google.com with SMTP id w19so9394674pfn.12 for ; Fri, 24 Sep 2021 10:06:57 -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=fSt/2Dj/eenIaIrKzQI+svTjzoFaPyRPoy7PzUBgu/Q=; b=PL8rk6aoND2MN3aHn1KJLrj+1n+Rs+ui8XwXbyU3+rvm2kBBqPT3fHzwBDg54gksSh 8Ny7BkgQL9nte2Yje47c4M0PK9m2agAkZ40jHr5ukre+ZCUVkgEASA9nt0Qe6v1IQHCv ndBssQF4zOuPqaH1LcSjAgV285rFvFF5ms5mlqg+vcQD9ER2xaG+5Rj22plPNWmotS9G +TCsH0qz4R7l/SfuKW0SDhqPCvuRLiLnswNB/G3fni3/V0fPDfa7/4nGQ3iKW8YZoNyl sOR2nkcz5yAY65kthq/akRmE8QuNEbS372cPkj4ZFoUpJJoYx5tJaWaDojOE5X/Pm8r3 Uxig== 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=fSt/2Dj/eenIaIrKzQI+svTjzoFaPyRPoy7PzUBgu/Q=; b=vSbFilPSDXR+VlnuKoMtQTnhzX20dZNQjeI6zSwnvTD1tCPh6l32nnzK+3feG0m7WX aLWMLVP4WobK+OjAmN/4wcyy2bxseWs++RLyP6lFu0XHSYEQ51QqR2XpUSIJOb149m0W zOdkC21ki87ZPFjnXnhlIKKIIDQKz6zTE8crf3qJABeb8IKFYnpB8ZR4skUqoebF3lVZ tEGmaItP/HYB6a8CD3b8zy33qWwelOpqUP9iykoeS7Tt/hSsRkAQWxsZbt2WnuKtY1YZ aC1AS+NMd1OmtmqekFBJ0e9YJPWeCrOoQSQ87/zZ/8BJ+wHbY78y28F/EiUmIiUM2SwR 6ppg== X-Gm-Message-State: AOAM5306h33TQJKb7zvhvUI2kTNtbpirdbjt+7vbXZFSZm97UXD4iJQ1 va03j/SS2um63/cJURTC0XA= X-Google-Smtp-Source: ABdhPJw9i/MXr3hPaw9fCxL4glXqdtYlk2E9G0McC+C7pit5nnMjKwn5fL2HUiGsbDopFLroVze4OA== X-Received: by 2002:a62:2f45:0:b0:44b:3961:2a21 with SMTP id v66-20020a622f45000000b0044b39612a21mr10176283pfv.82.1632503217306; Fri, 24 Sep 2021 10:06:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:06:56 -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 03/11] genirq: Export irq_set_affinity_locked() Date: Fri, 24 Sep 2021 10:05:38 -0700 Message-Id: <20210924170546.805663-4-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_100659_383560_05ADCDAF X-CRM114-Status: GOOD ( 13.85 ) 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 irq-bcm7038-l1 uses that symbol and we want to make it a loadable module in subsequent changes. Signed-off-by: Florian Fainelli --- kernel/irq/manage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 7405e384e5ed..e0c573e5d249 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -369,6 +369,7 @@ int irq_set_affinity_locked(struct irq_data *data, const struct cpumask *mask, return ret; } +EXPORT_SYMBOL_GPL(irq_set_affinity_locked); /** * irq_update_affinity_desc - Update affinity management for an interrupt 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"); From patchwork Fri Sep 24 17:05:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516159 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 2E6EBC433EF for ; Fri, 24 Sep 2021 17:11:00 +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 F413060F24 for ; Fri, 24 Sep 2021 17:10:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F413060F24 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=3qnRbArCl4gqMMKVot0gFktSVXCRf53Q+4rvw7V2aZo=; b=nwkYTzw4gWIsIF tGWK2s66IOqQ3VPIkeF8tk4dfz9hEcdk1/KiPu97x3ninAT5E5qDokHimSPwRhj3vdFUFOWgWXN+f VieTnD0Ns1VVRlQ6uBKOt+D+CPS1LlzKDsQsQVjkT9Y981GKr2SlG0CZc7KPeIFIXWhlPC6MQZ3iw +pMIAQMLOT8Om+0sG3LLAQCMpOajAKj98NYj+RmiMM3IsCcmSf+LWWewP5F8RueI7f6xci9ikBu+l lLDY7HGJUJALFjHJRsBm/korsho+CmgC1XEdqtgHt8D3Q34UD/7Zrl3LEe27lg2dgoRLmdoV/fPQB sIIMNgCuNzZrW3MKwJNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTog6-00FAgj-KN; Fri, 24 Sep 2021 17:08:02 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof8-00FAPJ-Kg for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:05 +0000 Received: by mail-pj1-x1029.google.com with SMTP id d13-20020a17090ad3cd00b0019e746f7bd4so4844141pjw.0 for ; Fri, 24 Sep 2021 10:07:01 -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=9fJWAIDZMBnqyaJKloz+swm+vHzzjwQ8q/tXjCn73F0=; b=SyHll5tjtjFteeY+yNZa2zfZ4UGyoZgXgoVIOtQU98UGY9Bu9FIqQgcrh5jw34ofDU HS8R2uGWjKol9427ShrRJHXSXRzR89+5e/5JLsWj5jD55VFQXhN536zdIudI0f2vE8lO hwU0ccCw1denAoHHWK5ZSsTDn/OqqugDI7e8W5Wc8wfoM1IekqcDvKKYz/sJw/+Qol7j kl1nI3EaGsUL+XP8ITwpn8sUiUkz2WKFUSGfGOuv/49sT018ldV47ElU2PBbKyK3N+T2 ltppUVH2RstPd8xsISig5C4LHlAYLva7SKlZ9wcjGJvL4SVGzDgWFsqjUvbAzylGBrED NbLg== 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=9fJWAIDZMBnqyaJKloz+swm+vHzzjwQ8q/tXjCn73F0=; b=apGveCh8snCKH2CafKBHAhbi9pu65+lJ9ziWL9nvMuZ2A4qRuLkX6GzQI4KYdFV0Oy W5ADhizHXYQAqf7RaM+aYFQVd4Yeyk6Wa99M1Bb9+9UsdMJlOJbSnliMWXH73gXnHnXI E1eirH2KcXfc1A08DzzkCg/lpiI/55qgRPJnG2TGZF1kWuAxUQedM25vlIkkgfWTIoLo det5lcunAldgBTTK9iSk0+HqVh80P4EM5SuMvok+OcYhzOtr+pLPsovdyNf43iE3PFEb c39kwhAflgAUKOrimvl+kntbi0lyU30gTg/kwr1rRARVZw0LdCj21mNseOvTVmUQC5KU V3CQ== X-Gm-Message-State: AOAM5310IfsjUfkpdoNssoqJPq4K057lGvG5r3k2/l1AD6eWCe9F3fg+ zp5Mn9BY/hLnAPBmtYpOlb8= X-Google-Smtp-Source: ABdhPJymRrvQcwMm3TdMU5msjtmRB+vmxzsXl2PoMBpul3iAkZ1lkT+OXFuRZtScg3u9auXwb2UdEQ== X-Received: by 2002:a17:902:684c:b0:13a:709b:dfaa with SMTP id f12-20020a170902684c00b0013a709bdfaamr9882250pln.61.1632503221414; Fri, 24 Sep 2021 10:07:01 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:01 -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 05/11] irqchip/irq-brcmstb-l2: Switch to IRQCHIP_PLATFORM_DRIVER Date: Fri, 24 Sep 2021 10:05:40 -0700 Message-Id: <20210924170546.805663-6-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_100702_708791_966D1678 X-CRM114-Status: GOOD ( 17.42 ) 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-brcmstb-l2.c | 16 +++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 3022f6137096..dfe54bf9b35f 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -128,7 +128,9 @@ config BCM7120_L2_IRQ select IRQ_DOMAIN config BRCMSTB_L2_IRQ - bool + tristate "Broadcom STB generic L2 interrupt controller driver" + depends on ARCH_BCM2835 || ARCH_BRCMSTB || BMIPS_GENERIC + default ARCH_BCM2835 || ARCH_BRCMSTB || BMIPS_GENERIC select GENERIC_IRQ_CHIP select IRQ_DOMAIN diff --git a/drivers/irqchip/irq-brcmstb-l2.c b/drivers/irqchip/irq-brcmstb-l2.c index 8e0911561f2d..e4efc08ac594 100644 --- a/drivers/irqchip/irq-brcmstb-l2.c +++ b/drivers/irqchip/irq-brcmstb-l2.c @@ -275,16 +275,18 @@ static int __init brcmstb_l2_edge_intc_of_init(struct device_node *np, { return brcmstb_l2_intc_of_init(np, parent, &l2_edge_intc_init); } -IRQCHIP_DECLARE(brcmstb_l2_intc, "brcm,l2-intc", brcmstb_l2_edge_intc_of_init); -IRQCHIP_DECLARE(brcmstb_hif_spi_l2_intc, "brcm,hif-spi-l2-intc", - brcmstb_l2_edge_intc_of_init); -IRQCHIP_DECLARE(brcmstb_upg_aux_aon_l2_intc, "brcm,upg-aux-aon-l2-intc", - brcmstb_l2_edge_intc_of_init); static int __init brcmstb_l2_lvl_intc_of_init(struct device_node *np, struct device_node *parent) { return brcmstb_l2_intc_of_init(np, parent, &l2_lvl_intc_init); } -IRQCHIP_DECLARE(bcm7271_l2_intc, "brcm,bcm7271-l2-intc", - brcmstb_l2_lvl_intc_of_init); + +IRQCHIP_PLATFORM_DRIVER_BEGIN(brcmstb_l2) +IRQCHIP_MATCH("brcm,l2-intc", brcmstb_l2_edge_intc_of_init) +IRQCHIP_MATCH("brcm,hif-spi-l2-intc", brcmstb_l2_edge_intc_of_init) +IRQCHIP_MATCH("brcm,upg-aux-aon-l2-intc", brcmstb_l2_edge_intc_of_init) +IRQCHIP_MATCH("brcm,bcm7271-l2-intc", brcmstb_l2_lvl_intc_of_init) +IRQCHIP_PLATFORM_DRIVER_END(brcmstb_l2) +MODULE_DESCRIPTION("Broadcom STB generic L2 interrupt controller"); +MODULE_LICENSE("GPL v2"); From patchwork Fri Sep 24 17:05:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516163 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 7F619C433F5 for ; Fri, 24 Sep 2021 17:11:11 +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 416BE60F24 for ; Fri, 24 Sep 2021 17:11:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 416BE60F24 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=zp0p34aRBR+FtXcEY33TrVNXmBrkAw1zRoraIIipP3w=; b=Gpduw1GcT+m8N0 yz4OWovy91/HIwMeqJlIqjEDwIZm9qFIUoHCjOvFpXMh9X+2jI2k6OKSdkCOHroTsvJCecbaT5lEQ sUOh9/zcPxnWhUQFbs2dFbTlxDrV3840+Fw4SAw68hQSG031PU7txxUSo8R2trD+nPOMSecW1vgjR ar8rpaEEmdEIQjfwiXKbay7UrIWWEfgHai9v0bgzKt3TNyRV9jiA+3QmQfGggtCBxnjGneliKKrNY rIkKE8161AxNQcCjSyQ2r6Vb5n03rwrVI8LXSgJlWeGTIEnZj9DIj3SQih0UCvYNAEIT0LGTUCKuK PoXydjpewDXrq2apILLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTogO-00FAox-Cm; Fri, 24 Sep 2021 17:08:20 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofA-00FAPy-HX for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:05 +0000 Received: by mail-pl1-x62b.google.com with SMTP id t11so6894199plq.11 for ; Fri, 24 Sep 2021 10:07:03 -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=cLaNe7Oyl1seZD/HRHq9xGsMnTdlxwayLK+zY+0ZWyA=; b=a6B1fa1EFrAyHMDyM2bRqowYA1m2gfbCYpCnZ/RTz6m1F/Z/dQlchqxnx+mBDb+dUb 1zBxVAMktpHRLTNreaAWvXJy2PVijGItNZakSO6PhHijTWtNuhDBF0j9KRSoTNmVdxyH EUwywnfXZgaSzj0u27/le5yrpqvniLeRzg1xhhDTjpWFns6sCijGrDkpOnYz2rH36xeh LhnmONjIKUF25mIhxriUVeFCVwZYBTMbrJGBWjjOJ2Umy0b8E/scVDHFbhD86HN9fs2X CN3PDE6UG6lqMgjFeAizrORVDempoxTSHGp+91ePHvUOyRZ++vTwYT4QZWvfi5ZAXnnQ mlLQ== 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=cLaNe7Oyl1seZD/HRHq9xGsMnTdlxwayLK+zY+0ZWyA=; b=U/+IGDklDqXHLLoHZovlEmV+hej6uh6g0sZ1dOv+NIzWRYy9N9gv05wu4KjhHmWqyk 0c390P1hBtNHz1iUsq5E2ptFwTaPV6AZl97/iERkZdr9Jq749rVwKAr/fCSRxUMRmtUX fZknFj99ppcDb7HHM2etO8lvaikEaEKPd0Qfkw0FaMyH5SgE+UHet8aNBal+hqi+7cMm ozdOQpZriEo/luhivHkWYTg5rHn0nobPPS7QJ5l5wWkT/S//n6tXfiW+bBQfdXeSNamy y8JiEJQKCJxIBFiZvLNQipiwuSTvrMoNYy3d0by/0fUhwmMamqUhxpv/gmhZ8wnCtc6x XHXA== X-Gm-Message-State: AOAM530c6OE5r/ZRDRGEIKeo8RZqT9xU9x27ahlvp9+AFo/iO6WZwdyA 8VNNwJturGaj2PParqJNaY4= X-Google-Smtp-Source: ABdhPJz92OdAzfkcpV8HuUJAcB177uT4jGMbXurYka0CQhlrf4R+Y8WUWjfM0nLp+Yz1RCQQ228a5w== X-Received: by 2002:a17:903:187:b0:13d:fd13:8862 with SMTP id z7-20020a170903018700b0013dfd138862mr662576plg.85.1632503223371; Fri, 24 Sep 2021 10:07:03 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:03 -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 06/11] genirq: Export irq_gc_{unmask_enable,mask_disable}_reg Date: Fri, 24 Sep 2021 10:05:41 -0700 Message-Id: <20210924170546.805663-7-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_100704_607332_C8CDBDE8 X-CRM114-Status: GOOD ( 13.54 ) 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 In order to allow drivers/irqchip/irq-brcmstb-l2.c to be built as a module we need to export: irq_gc_unmask_enable_reg() and irq_gc_mask_disable_reg(). Signed-off-by: Florian Fainelli --- kernel/irq/generic-chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip.c index cc7cdd26e23e..4c011c21bb1a 100644 --- a/kernel/irq/generic-chip.c +++ b/kernel/irq/generic-chip.c @@ -44,6 +44,7 @@ void irq_gc_mask_disable_reg(struct irq_data *d) *ct->mask_cache &= ~mask; irq_gc_unlock(gc); } +EXPORT_SYMBOL_GPL(irq_gc_mask_disable_reg); /** * irq_gc_mask_set_bit - Mask chip via setting bit in mask register @@ -103,6 +104,7 @@ void irq_gc_unmask_enable_reg(struct irq_data *d) *ct->mask_cache |= mask; irq_gc_unlock(gc); } +EXPORT_SYMBOL_GPL(irq_gc_unmask_enable_reg); /** * irq_gc_ack_set_bit - Ack pending interrupt via setting bit From patchwork Fri Sep 24 17:05:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516167 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 BCA0AC433F5 for ; Fri, 24 Sep 2021 17:11:27 +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 8595E60EE9 for ; Fri, 24 Sep 2021 17:11:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8595E60EE9 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=kqRNeOPuUIejXX2Lc7JraOH108Mbvg+Aw3zDiR9nDMY=; b=q39bNvMo346n7R lxUswhhiMTgYgnf7JfqqdGuMrh7oXHu0MHZoaPXgpe8C4ujx2KdoYzQYVi8HIiZQYESd+J306VZwF vWVutmWfoiDttu4TZSzH+YnLXoYi/DDhm5xy+pSJOj+sKJqADQh/pm8qu9PBEI8ObhpEMEIU7voPO cuh6WwKg3VUozPYBVoCcz7QsD52VblgdZWm6BMsm6LMaXFWaZ6zdnj2d0dKmxF2lF7oYQqANVWDe/ qKHam4wrM4CQ/nz1yHORVNEJV+/r6j4aeGs65YyW6kEk5/QniUAMdTMV5BuI+npkJPH084tF0by5F uauyICPQosJvdIrpNiTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mToge-00FAv4-96; Fri, 24 Sep 2021 17:08:36 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofC-00FAQe-G4 for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:07 +0000 Received: by mail-pf1-x42d.google.com with SMTP id g14so9470816pfm.1 for ; Fri, 24 Sep 2021 10:07:05 -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=IR7iGEsWM4mxjXZfoqo7m6j++9do1uNMuo9CMR/SQ9I=; b=dpaXvMxmrnZDzjRDG9vbsfni6n6vmDUCD89VGU81gKtDOqTLjKtg8uV/3eiVRrid8f rXt6qppCsAjL34efPgePlTfKz0b5R2UOyuTAx9P1KiI8U+SuVsdd39zGjb/Zj5MArhSS yKD9fMsBnd6l/4zqxKsvshmtg7ZNzRb9AtYkuSfwkkvmBZTyCfTqv1UKag5ABLK+lDR9 AY4WJOIVxI9NOMeuAklIkPyFQ39i8iklJEVCLlFe63iRt73kOzxuRYhgbkOksNJldLdn mtlAjy6P4B4KyEHPOONAviOSvhuF8RM6u6WI3aU+o3pdQp1DI/hDKBsGC+rmQ8CWJSK/ 3S4Q== 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=IR7iGEsWM4mxjXZfoqo7m6j++9do1uNMuo9CMR/SQ9I=; b=TjklnQb93YfhbSetKd5gxZQit4HJgbmbXAz5fVEj5KFhTtDHwtgwTDHic5OrhjkZOR v68sqtGPa1uAijW6FvYuk2dfLzSBzQlfBALheYOTut7UdxlPnE5GbNXHTQwalNce/HC7 KMKbKXIeE1eJk2x5VB80Rh/YuVn5GzYgmadVOXtEyFybKvIH/hMma/K8HC9F1XBl/7G0 psXBamPY4xCThO6ETl3YaRBN6KiNIdpUv5oI3KRh0xaKAwCpITogSlYICu8/2/QEfe46 1yVbkojmhPONXsRQLPqsVGTspcmAB6yEz/Jewu1353apA0OMeeoASK0ZDWTpsVCMVHHR iWHg== X-Gm-Message-State: AOAM532BKB/9FwU/wNN7hnZQx082Ot7Yvw/9JwSEFdYj8NywfMFVsTtO ENuCHXW9FksFKONkMylWI2M= X-Google-Smtp-Source: ABdhPJzUN9zJeKx+S71xh2ThXQH6aSN/EG/ft/rg0Z82gwjCLfZSlTo2cDLYBDJZo1sgwxvrgJlqBg== X-Received: by 2002:a62:750e:0:b0:446:d467:3620 with SMTP id q14-20020a62750e000000b00446d4673620mr10711357pfc.80.1632503225363; Fri, 24 Sep 2021 10:07:05 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:05 -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 07/11] of/irq: Export of_irq_count to drivers Date: Fri, 24 Sep 2021 10:05:42 -0700 Message-Id: <20210924170546.805663-8-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_100706_558165_483E6B64 X-CRM114-Status: GOOD ( 13.43 ) 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 In order to build drivers/irqchip/irq-bcm7120-l2.c as a module, we will need to have of_irq_count() exported to modules. Signed-off-by: Florian Fainelli --- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 352e14b007e7..949b9d1f8729 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -440,6 +440,7 @@ int of_irq_count(struct device_node *dev) return nr; } +EXPORT_SYMBOL_GPL(of_irq_count); /** * of_irq_to_resource_table - Fill in resource table with node's IRQ info From patchwork Fri Sep 24 17:05:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516161 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 3DF24C433EF for ; Fri, 24 Sep 2021 17:11:04 +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 0E2FA60EE9 for ; Fri, 24 Sep 2021 17:11:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0E2FA60EE9 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=IVcA6d0LEGX9QAguQ3JTJJAQ3jpS8RGXOJZxcRXOqT0=; b=WZcewniMwoBbx6 nzFza28Ct30E8jyZZg6filtTzDDxMaw3RBr7Q6E1Nbi74XJuHbrfRnSIPzhtsJvpsW8ewBx4WJzNP QSftbkEsVDyXvglYKuRXfP2ElCCzkTbS+Shcsz7B2DCUaAITS5yD5ERpTIu0ok1MJ/N/rak0pUenE besw1ed0H7kqVqgZyk+jnaI1MaezjRQegsxeJ0FGdd8opGikWuTE00YqSFSk9PjPlUlJhyDf8qRjO 9GV9vP32wDG0RUvE5s5wWJF9zpBq7tHz4pPhmtavYnwbzRepBTjK1VEUoB98+tV2jRcu2zSaZc9X8 WP8QUf5bO1WPz0nFhPlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTogz-00FB4y-MM; Fri, 24 Sep 2021 17:08:58 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofE-00FARW-Nn for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:09 +0000 Received: by mail-pg1-x529.google.com with SMTP id r2so10432378pgl.10 for ; Fri, 24 Sep 2021 10:07:08 -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=HFON70fhXDszaD5v9yYPo/8gY6ecjeQthvGng5DXIkI=; b=p9/Xdxmso3Xm/qtL+MqVDXpgCgoFff6i5El9II2B9P95NvBEwq0iZfFqWsZz4C03Wx 1gLLWHS5WgtPjt8k8/zsdhlQQh06P0GZHW84uYInNhzO+MktccGpsPwZIOvikSg6DGIW UxKXHGPJqUSgyajF1N96Ra7vEkFJbbb7xdwngjFAgX1Dmz1LnWdzrbh6fyPe5HvdYEnq 3xhjL2L/B+HA9hd3iEJSyzho2Xm6QqX1Y/2zeud9Iu6V4sFVtmVZkmvmXMshq2wn36UU voYqt4LRugDBN080c1tX0z3KoyGDVgmbOfGVkviRzD8W7lKB3cFTWMN+bTe5Q+D3nUb4 Foeg== 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=HFON70fhXDszaD5v9yYPo/8gY6ecjeQthvGng5DXIkI=; b=bnof2jN9zcIwliiM69uNo5DRawcF7pFMdi3P75RYz09PAkP3gZ/4sCMtUDTwp4V2iV QMTE9Lu5EUNeZ6J6tR7rwz0UH8CVrnRdIEoSTuer4PN8aR7ger3K2s0cNJxIIk9dqJK7 9UN5BhIbyiICGa5OsH19+V2TNa8GAWDEJve9AAaz0/SrFdJIk13X9eVGVlqdWSkmDTLF pTjoLTal92mw22JJqxQW297+hBoON9CljvBVI2BoaGK5rFBn8tU1pLTiVUcOEfCBMeBr OB/bykyGxOVku47yfeP1ycwizKrQS/F6Fkquzk/OfE6q/EoL9g4Vr6OVGKEZUUSC379h C/OA== X-Gm-Message-State: AOAM533mv/IVGnYpIqjRwCyvD7hUVkwylrWljX9tZb/8fxtnOFtpZrnl EHOjARGXJdEx2HfbwkDz9C8= X-Google-Smtp-Source: ABdhPJxvu4S59caJY73Fi8OniOxfyNWURdEFUc9YYwCqTozmK6Cc87FKJnmIffCWzyZ8Rk5U09TUPQ== X-Received: by 2002:a63:5fd8:: with SMTP id t207mr4641623pgb.123.1632503227515; Fri, 24 Sep 2021 10:07:07 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:07 -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 08/11] genirq: Export irq_gc_noop() Date: Fri, 24 Sep 2021 10:05:43 -0700 Message-Id: <20210924170546.805663-9-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_100708_790613_FCAF039F X-CRM114-Status: GOOD ( 13.53 ) 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 In order to build drivers/irqchip/irq-bcm7120-l2.c as a module which references irq_gc_noop(), we need to export it towards modules. Signed-off-by: Florian Fainelli --- kernel/irq/generic-chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/irq/generic-chip.c b/kernel/irq/generic-chip.c index 4c011c21bb1a..6f29bf4c8515 100644 --- a/kernel/irq/generic-chip.c +++ b/kernel/irq/generic-chip.c @@ -25,6 +25,7 @@ static DEFINE_RAW_SPINLOCK(gc_lock); void irq_gc_noop(struct irq_data *d) { } +EXPORT_SYMBOL_GPL(irq_gc_noop); /** * irq_gc_mask_disable_reg - Mask chip via disable register 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"); From patchwork Fri Sep 24 17:05:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516169 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 24057C433F5 for ; Fri, 24 Sep 2021 17:12:10 +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 E25506103B for ; Fri, 24 Sep 2021 17:12:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E25506103B 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=LY4Q00sZLX3QRTvo/lwIuTenkMggTQmiDELEy4+X+/4=; b=4QEJlxfU5Ng0qU wRw8jATWh273ti5rGHic0KuSaTUc8RlXe32qwqxhKeO9cQbNrI5cY72N4wnTM7HVNJAWaIN/HM2xL rmvRKjyIpo6eCexu/5hRlDzpPmf9UwAOYhBh3SWnZndymJcyoAItGaVhCraYceybC8kQZPpVOkvQz 8GYUg/nFmFqCGocWY/lzU7/LhVEfo1vwkQorQtsKh82Fw1vh5Rg5IliqV2Hg9GSUspM/nDG5xpimN dk6FeYKTXofP1EtCWeNPgVSMjAseuLvimZCecj44yjgJWydAwo/Fq2rTwkvoERQzIHcqO7nkP98Cp PMiU6bDXoCV176f8KGDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mToiO-00FBj3-Iu; Fri, 24 Sep 2021 17:10:26 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofI-00FATQ-Mj for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:14 +0000 Received: by mail-pl1-x630.google.com with SMTP id y1so6888085plk.10 for ; Fri, 24 Sep 2021 10:07:11 -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=5ALk99V/yV50Q7B1PyIb1+nfNEsL1ZZBgIrsEIIgD/g=; b=W5mze3xMeug+VzShPMYoE9WUJW+4lqGvITid0RKVzHUGOnkZrSCL7ZT5JAG2OLL4un mrl4kzC0BFmToEC/cQIYukwvKLaTGK6KPsZwoijYV4mWcbgIUf1msg2CGtq/khu4QaYP 1STRfYGQejLRVK2gcYgnAst4xsB9DsO8LRDICNgk1dteLeQ5wXT7SiWzIGqyxPBrtZ1w tWIpqZ/qluN3PLGd1BWZQoXo9ohKYF4/4xVzkz9ZicJN17bhbw62z6GKiQrujQ8aQTDV fKnzRCtInhvxHfxmlHpwmjqJ+/YGd3sGxwdXnyPLRhbHlQjtxltT2lWylvINag+kgXDo 89+A== 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=5ALk99V/yV50Q7B1PyIb1+nfNEsL1ZZBgIrsEIIgD/g=; b=p8JoLKW4s4c1OO/d1iXBSJctWjhHGsugX6RZzc34Ghg9KxbIMPn7VPKTmOsR+OM3LP NBLh3LeqEtkhZSmNaTwgIuSlKYthiA3N8MQ6JBMrS7jAjn3gpTUejSZ0D8QpHZwPNTdX WzlYnrJYi1/UjaV+oRx+MQURbiUyO9hg9RwpkQITta+Y/2lLTUH7OQjhBrAK+ht9O2JJ xny22vcujS24k2srgKxqMOYpiq9gUhJB6Un7eWhYQBGxCSRfU5OsmavN1XXAPrF7ecLK 1RpBAjjHYVfOgyDaIWaQYEVZtAsF12ZyZzFQbez33lGG/YOHl2r+DKiQcdGJRFp23/mp 4itg== X-Gm-Message-State: AOAM531KOt3Eo20OScre6x0CMZQd8kE12PICJdmB3gafr8GSIr3hdnvY G0o10Wn05GwYVsThfy+0auM= X-Google-Smtp-Source: ABdhPJx4/WY8NCsHn64dsmSYUYNI/vXUyzu/b0jOiRm+JP64JaclemrbepQwTPKymlGhRbStoVRm7A== X-Received: by 2002:a17:902:ab16:b0:13a:356c:6a03 with SMTP id ik22-20020a170902ab1600b0013a356c6a03mr9875580plb.38.1632503231516; Fri, 24 Sep 2021 10:07:11 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:11 -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 10/11] arm64: broadcom: Removed forced select of interrupt controllers Date: Fri, 24 Sep 2021 10:05:45 -0700 Message-Id: <20210924170546.805663-11-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_100712_793703_6B7355E5 X-CRM114-Status: GOOD ( 14.50 ) 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 Now that the various second level interrupt controllers have been moved to IRQCHIP_PLATFORM_DRIVER and they do default to ARCH_BRCMSTB and ARCH_BCM2835 where relevant, remove their forced selection from the machine entry to allow an user to build them as modules. Signed-off-by: Florian Fainelli --- arch/arm64/Kconfig.platforms | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index b0ce18d4cc98..2e9440f2da22 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -44,7 +44,6 @@ config ARCH_BCM2835 select ARM_AMBA select ARM_GIC select ARM_TIMER_SP804 - select BRCMSTB_L2_IRQ help This enables support for the Broadcom BCM2837 and BCM2711 SoC. These SoCs are used in the Raspberry Pi 3 and 4 devices. @@ -82,8 +81,6 @@ config ARCH_BITMAIN config ARCH_BRCMSTB bool "Broadcom Set-Top-Box SoCs" select ARCH_HAS_RESET_CONTROLLER - select BCM7038_L1_IRQ - select BRCMSTB_L2_IRQ select GENERIC_IRQ_CHIP select PINCTRL help From patchwork Fri Sep 24 17:05:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516171 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 96F1CC433EF for ; Fri, 24 Sep 2021 17:13:42 +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 62D7D60EE9 for ; Fri, 24 Sep 2021 17:13:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 62D7D60EE9 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=IjtZu2/XIwIRVQMS5fIHdj8UCLdos7xLH5lYbfZ9fJA=; b=fJ4KIr0dWGqgae TpeUawZ7hYFqGwfzCb1y1rrlmMAw8pKcnDUwncmdm54pXF1bei+X5/+TxlSxwUm9/uOlyDbwMeAN2 pVBtWMigGlg/6qZE1a+xY9dcBqRkkcD8Wt+Ua86lj0S7MkXcNTWQbqzjZefug1v00Ug1F/ytLL2dy YK1rPw4UGZnbn/fmeAz9uT22UlkolKa/wX7XM8yI6fsJBNym2PPs4TBt+23sC1hxKGbSsWMX7zslg mtlqA99lukQ3WKJv5nQIF+Cy9QtGcvPHMNHQ3bzVDf9cxIerTQCFcT9BIifmq6/fe10HGP3O97oI6 cjLs12BmG8kVbnxlpo/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTojI-00FCCb-Hs; Fri, 24 Sep 2021 17:11:21 +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 1mTofK-00FAUH-02 for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:07:15 +0000 Received: by mail-pj1-x1032.google.com with SMTP id nn5-20020a17090b38c500b0019af1c4b31fso7996401pjb.3 for ; Fri, 24 Sep 2021 10:07:13 -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=cvv2iZxij6FWrFEEKivGkcFAPGtCwuGKeJ0S/lB+6EU=; b=eY7PxDSo+innYXsmEeVZ1M879ZBBKPDcxIA7HrdKVgBTq/ryR5ec6Eb5ByJ6CMVWWk axLyq1G9Odppw6jMwFnpuEoFasQvoiqyRE+e+9Z1/+BfQmtxBE0QZexGN8Bd3BaH8Td5 xZbkMArEFUMAnSSvGKvX3hflhkeZehH4uGzMuvezVzYfKfS6BM2FztS+lIkqEDDvp4ZR 5ewIfXGDIePcS3AWOz8qlh4nQ974X+tOtX61dCl0HfMtpCIVLDWBYVxUU+v2zPTaw+K8 WfC+TXBzDriWg0+ZuKmzTSoPEkimqphNoGsUjAJzkl9wWQVXJ8xN1GwVNCMcehMSWb2j ah/w== 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=cvv2iZxij6FWrFEEKivGkcFAPGtCwuGKeJ0S/lB+6EU=; b=NoDpppK0Tz7qWTRiz9r7b+YSAz68Fp7tk8qfgXDzCgzxoV0udjgEsiOIblTycIeadP A3PEfsPhKnsqjFzFdqfIaPi9aoRh5m81RTOXaJSG2CeLfFYY7SEDAJk6+U772tFzKDTD cQyTugssBwBkJ19G942m7yaxjc3UTlewe35XIT/CKQuUQfTIJTXNcZj2ooLIURLU5I3D 7YpjVzLAgLQkoVrMr1b74LMv07fFMVCYurSuRAcZXT5SyQ2Mx10SVsmNizmAh0149JeA vzhK26GZmhJjZatE7vc5fpPGNnAqH+P2TE9c1E05j6Gs/wkNq9R8U1yhBhdtqWefvKm3 CnYQ== X-Gm-Message-State: AOAM532Vs9PNsggk3vOdyDvAxmh7ttCw5ds/8RJ96k/ZXYBq9zYfToKE 2MV0wU4Ge1AKBRaAVdBN/yc= X-Google-Smtp-Source: ABdhPJzL+MvDPKqHl5Hx+/hujrgjmq9BtR78Dg+QhCGNwAs4BmCA7Wq9ztKm/O2zR7jvrKDo/0lfAw== X-Received: by 2002:a17:90b:1c0f:: with SMTP id oc15mr3519053pjb.1.1632503233477; Fri, 24 Sep 2021 10:07:13 -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.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:07:13 -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 11/11] ARM: bcm: Removed forced select of interrupt controllers Date: Fri, 24 Sep 2021 10:05:46 -0700 Message-Id: <20210924170546.805663-12-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_100714_074424_2743DD39 X-CRM114-Status: GOOD ( 14.83 ) 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 Now that the various second level interrupt controllers have been moved to IRQCHIP_PLATFORM_DRIVER and they do default to ARCH_BRCMSTB and ARCH_BCM2835 where relevant, remove their forced selection from the machine entry to allow an user to build them as modules. Signed-off-by: Florian Fainelli --- arch/arm/mach-bcm/Kconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index 2890e61b2b46..bd3f82788ebc 100644 --- a/arch/arm/mach-bcm/Kconfig +++ b/arch/arm/mach-bcm/Kconfig @@ -161,7 +161,6 @@ config ARCH_BCM2835 select ARM_TIMER_SP804 select HAVE_ARM_ARCH_TIMER if ARCH_MULTI_V7 select BCM2835_TIMER - select BRCMSTB_L2_IRQ select PINCTRL select PINCTRL_BCM2835 select MFD_CORE @@ -209,9 +208,6 @@ config ARCH_BRCMSTB select ARM_GIC select ARM_ERRATA_798181 if SMP select HAVE_ARM_ARCH_TIMER - select BCM7038_L1_IRQ - select BRCMSTB_L2_IRQ - select BCM7120_L2_IRQ select ZONE_DMA if ARM_LPAE select SOC_BRCMSTB select SOC_BUS