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: 12516117 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 BABACC4332F for ; Fri, 24 Sep 2021 17:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A21696124B for ; Fri, 24 Sep 2021 17:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343753AbhIXRI2 (ORCPT ); Fri, 24 Sep 2021 13:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343677AbhIXRI1 (ORCPT ); Fri, 24 Sep 2021 13:08:27 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C51FFC061571; Fri, 24 Sep 2021 10:06:53 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id t20so7388673pju.5; 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=iAq9lItuI2hlmNmwkfKJ7ak3JzLaQFUwNl6iVeVu01zfvtJeLDOrKm4Ju2zB4xBTwh 1VbVS7zzRs40b8zjQuYPMNsDlSE2h2pn6F+RX7sq51LwxxQ1z6mflQlSODjCGVashq1S XJyDrq3hETpiMSK7TYfYM8DFLH+os0yYT7zJs7D6wDxCIEXWehZGiYeR6hrtJBYlFXzP wFy6pEa/izT51ooBwlzg8XKei1EdZ3AYCIzFyMxNf4aekhoUXz0MRlKWszfduWkBOsT/ tZ0+RM3WN9+enGLxTsnwhzfd7YPUQtY/b3ViX0DbUHMUiU6owU6+8vCBAp9CPrN+oUdR kFGQ== X-Gm-Message-State: AOAM532bXMyFOsGYwrflymnNA7t7Awm1tjEFJTiZrgknaBWShuKmbtlD 75SsPe8Zobr+UK7NNjGNC/0+34VXjhM= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516119 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 7830FC4332F for ; Fri, 24 Sep 2021 17:07:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5911160F24 for ; Fri, 24 Sep 2021 17:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344357AbhIXRIg (ORCPT ); Fri, 24 Sep 2021 13:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235048AbhIXRI3 (ORCPT ); Fri, 24 Sep 2021 13:08:29 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01478C061571; Fri, 24 Sep 2021 10:06:56 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id k23so7437998pji.0; 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=lQCi5ZetEpEZWthxJniSJHunl4+Lm/Qtr062IVGDW+umeEydLkYqMbxwPbPIlYye5o gCRM6+2kb/Xx/LlHV2nwRlhPfKNxc3eDnBwN3jlJOR+P7X+/AAf9sC/0jt1M+tK2vYzB 55U/SW0RJtIQFvO04ainmx3AiviJH2AD5AULL3VjA0O6MJa9UlYK2J9Xna9FVNOv0WMH v4sIS9cE8F6RoY+owCnNOXG7ZaIK1T4iGudDw0cSrqQAYep8mWZCimY9F8R6kgPoSJo4 LdPWoVqpm2B+tm+YkM7WY1X2EXUjBBgEB4YsNC91esnzkVphbtLUVltIifcxKqMKaG7H s1cA== X-Gm-Message-State: AOAM532WUYCqAKbhHA9ZUVgtSKUzKXRb96QT9PP2fyXWVQ25e7FljXZf WfAslNuc2Y6HpLVWu1WgTktrx4GEn70= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516137 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 9B427C4167B for ; Fri, 24 Sep 2021 17:07:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 81DC461260 for ; Fri, 24 Sep 2021 17:07:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347539AbhIXRJK (ORCPT ); Fri, 24 Sep 2021 13:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235333AbhIXRIb (ORCPT ); Fri, 24 Sep 2021 13:08:31 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F423AC061613; Fri, 24 Sep 2021 10:06:57 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id h3so10440488pgb.7; 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=LMNvp14APXaiBIr6XHO1L8dmF7lJdrv6nD03JpzuVwB3T5VIt645R59zLCQ79D4N0Z 3Uupg70YgdrObIoPLsrNFsBmI5KQLHHG1n1U4u6hK40oK+JCsgGMV8Yd5BmEaDnEaO/7 QjnRDkjvqFmJWJXrfTuz8IZuDgefDy0I/AY1gyvQHeOy+Lf50Xn1FlBjX19EuybM09GS r/pWJP1lwSd8Hk9B0ic2jMIlzf5V9XHwuZZG/GwXIodf791KTbzsJnxZPESRj3egezHO hzGFik402PdM+A7LO0JQokwkJsIjQeeeTLdlUHdjZ3XT4Yyciu1CR/w8P84Q0ELeTYGr 1hNA== X-Gm-Message-State: AOAM532W0ZKhZ4M3m4Q/oYs+Te6IFCbSvWoHU4WR4IbAeVMi5roiFMAi iaSGbqmK8P9pTSU3y1zka1nrnfxI1cY= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516135 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 13813C433EF for ; Fri, 24 Sep 2021 17:07:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F057C60EE9 for ; Fri, 24 Sep 2021 17:07:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347518AbhIXRJJ (ORCPT ); Fri, 24 Sep 2021 13:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344328AbhIXRId (ORCPT ); Fri, 24 Sep 2021 13:08:33 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17CA2C06161E; Fri, 24 Sep 2021 10:07:00 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id k23so7438109pji.0; Fri, 24 Sep 2021 10:07:00 -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=obuQVNcFSzIYxdbHU/ydk+FtMsrHpIkhNUjuK69ElMCK+C4cyWYlYQV5Sa5jXwDKwR bML/RhCONhfe9+p8Pkkv3qRJ048WjpnwPT13FIkbB0Use5W7/0P1bf5B3+H7oR+wMh/U M142lU+Pi76KfwLu78cX0UPHdVYTem7t5+n57nYovgIh29nHcvWMcc7bh/NxJEKbPmIw jniczeW7gLvNDBtWigZsRWLVAej6EXgp7VANTi8SvX31gs34oIm5CEjOBTRsJpXllB67 oe/g9W1xqt53rFu5FNvbj71OOK40No4h6O9KA46lKcCVyn+H+o6QKgodtUyDgFxslXam 0Dig== X-Gm-Message-State: AOAM532ndsL25OVnwutfuqgcQ0vhD0jhowIYcMN7WHoeZHFAQeRstpOU umQwACXb9jr5Rn1U6p0YGr31lETuC8Q= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516125 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 98210C433EF for ; Fri, 24 Sep 2021 17:07:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 82C0B61250 for ; Fri, 24 Sep 2021 17:07:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344261AbhIXRIz (ORCPT ); Fri, 24 Sep 2021 13:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344492AbhIXRIk (ORCPT ); Fri, 24 Sep 2021 13:08:40 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B499C061767; Fri, 24 Sep 2021 10:07:02 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id me1so7395653pjb.4; Fri, 24 Sep 2021 10:07:02 -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=t3isVXw/Ixup0pxyhEVpL6UNNetlPYnKL8EqTYQUtzuLRxMri2Ec2B6Q+Ky7jBevE1 1nVmECvDk2mntnzzDCgkeb/jKjCetnvIO/MNEz1iVC/OxYpfBkA5Hl0p/5Pb3OzJxC3T 7mbkt8YncoHH2KI2Qg5eaC0WKvmDzWvtJoPUxyVVeL/lpVkKt5FW189wr6S7x/81ziip PBcFMKJH+yVDZX0GtLsYcrIWuH58ytD+lvGdodbQpckT4JRlkN4Aym0i3+Pq+Ju50vzm 0JI2zyDC+6b3yx4E4944hQMr+Grzi1g5BlGyzogzXeYnS1Ff3tved73VDdI9DHYSlLcD Ulbw== X-Gm-Message-State: AOAM532Y5WM2iBnBweTSJk/YBNZpQk+PgMEhn8e757uBt3odra+gnmvS fziX2mwfPXCMGzuSrFA4gdbi63I7ZnQ= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516123 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 AEEFEC433FE for ; Fri, 24 Sep 2021 17:07:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 984D26124B for ; Fri, 24 Sep 2021 17:07:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344548AbhIXRIy (ORCPT ); Fri, 24 Sep 2021 13:08:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344601AbhIXRIk (ORCPT ); Fri, 24 Sep 2021 13:08:40 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1472EC061768; Fri, 24 Sep 2021 10:07:04 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id y5so4461278pll.3; Fri, 24 Sep 2021 10:07:04 -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=2UfZZXQ7Lssgw80p1mRkpAd19Bg5hVl7qteu4LrPKKphT0NHou3NWw47x0oo4zoYwq C+7Os7oqNAy0To0Plhavmc0PbhP+wqQSTBoJVyS+bR4MRq/x32iFqQkFN2Gp8pTP1MuM Lx4Nad+YcHuFG+tR0lylBLTDfDVSjTTeuyR7jN/bS0Q/9NdRboEsTMuWHj3PdD1iYHeO u1YgJaXN83ufp2F5Epi9yRhpg2Ip4mbDQ9BPo2cC1rDLpYco915U5BmrC3dU2/nhPks1 I4VD0v491/nNvUwkdyoxWQc+wToFZkozZc85vDhRwrdAkRKeHnPLOidhChTRzE9jQBka vnzg== X-Gm-Message-State: AOAM532gWi588YG+um2PV4g+UckD9vYGqaBknHwwbwtedIrBRured/03 2HSkJVVaZr3iDiVjJht1jJCAfXgFTIA= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516121 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 75849C433FE for ; Fri, 24 Sep 2021 17:07:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 667656124B for ; Fri, 24 Sep 2021 17:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344768AbhIXRIw (ORCPT ); Fri, 24 Sep 2021 13:08:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343779AbhIXRIk (ORCPT ); Fri, 24 Sep 2021 13:08:40 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC75C061571; Fri, 24 Sep 2021 10:07:05 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id 203so9386492pfy.13; 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=cGLCB/8y+iyGiP1ZrAGulcMp/3nz8auwB6AnDEs5c1YRwnyi8GdPY1lOp70Yn0Iv0q GQOY8GF7D4YOLIgIPEQnUqppKVpKAYWeESHEyiZJ3CjHrtGnmAVKClLPk5urNz6nf2EG TX5PMSEdonEA1IvpKa28P959bcBo6qtGcTmIdoSZG2Wh8ug06eAG72N9Q31JLB1dKAeO +cwwlv5hubwtqWC+EmyvAwNhmcdHOpHtHGYLGfxsJkH+MlGk4v3XKiJwbqOZWi4wFTDP LUQjSrCLW2/TiC63R2HBR5jRzpsAfarO+fu79fhaht0Psl8HwbRJom8H4BxgrA/3NM10 SDNw== X-Gm-Message-State: AOAM530M3Mn8rL3Hlu3OaBcYAi0ye5Rwg0GKe8ijvli+o2OGa+Xwi2vp kj0NoghAeFjlnTP5rve7KCzmNmAw9GI= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516127 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 BA04CC433FE for ; Fri, 24 Sep 2021 17:07:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A8D1B6124B for ; Fri, 24 Sep 2021 17:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344526AbhIXRI4 (ORCPT ); Fri, 24 Sep 2021 13:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344766AbhIXRIl (ORCPT ); Fri, 24 Sep 2021 13:08:41 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44F54C061571; Fri, 24 Sep 2021 10:07:08 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id r2so10432383pgl.10; 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=zN5IDbp6TyWwFTnSp0d3UkTmlskCUQcJOGB6rp2A/XMHWcvt/DujOxEMj+qbWB/PMU 2gIqxCt3XtEuU8b8RQ+GfrnPCnkjjJXenrDiFqSzCPwqPxbxGTq1sEnFEaesuOGQGeFF ZGO0SPetMmtWdb5kP/mTg/WkpD1aaNiRW19HMAvDo79uYEKxAJio4nIC8GfqGWREF7kc 1AZdxm5Xf/JnS1CFWXMfI15HqkxOpQxcFGSs5sQskrfTsrATBq3qJ0F/WSLE4EzGk8PB reOs8nOX0Mtck4lln7WYp7jbQcK5/Ye3bx9gw5fMavzkeskCB/8EfiG6s/UcTy/roQDY 182g== X-Gm-Message-State: AOAM531QgB9lkfkUzeu8NbPRbX88xoGJDurDvBG9RhPG9EXstzFu6D2K car3ykxRTTy4i2b2xgMVqU+3Wgd8o8w= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516131 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 84CD2C433F5 for ; Fri, 24 Sep 2021 17:07:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69AC160F24 for ; Fri, 24 Sep 2021 17:07:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347464AbhIXRJF (ORCPT ); Fri, 24 Sep 2021 13:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345001AbhIXRIx (ORCPT ); Fri, 24 Sep 2021 13:08:53 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35897C06173F; Fri, 24 Sep 2021 10:07:10 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id l6so6893929plh.9; 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=PCgW2e2mAiMYdzQGzLR8/ZHsIj8dg3dcOn3AAEzDqR0H+1CipELHx/4tkpObXgUS7j i/svYcEg8645XpT+3SSvyJy1tMccphi0OPGt/u7YznrrJzpIMdpRQYu8G9HW1G3T173d NZcU6fgQAx9MqX4yCtc5XbuHpVoFCYSgh08HNTMjrvCCmcRMfub08lpnED6SPuZaaBpJ EhOhpMNt6dMS98Uc+bqPP2/caqPC8uAnW94oT+S2DiV9r5GsfxMXULkFI+ksI8y8bCAj 6cR3GJUyosqnznZEGB1OjjQOGw5DAVbY1m+2SU0TIvWR3/yDeVB/NGusTKeaDuqznpC/ RS7w== X-Gm-Message-State: AOAM531QJZ3GVXyduF2UGRqD9gzsaeEQwKBz5k3CcR8PJf5YFpn64NvX T0Wa2aBGicgw0pJnXLDmU/biBxVgqF8= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516129 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 67022C43217 for ; Fri, 24 Sep 2021 17:07:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BFE561250 for ; Fri, 24 Sep 2021 17:07:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347439AbhIXRJC (ORCPT ); Fri, 24 Sep 2021 13:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347416AbhIXRIx (ORCPT ); Fri, 24 Sep 2021 13:08:53 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36B0EC061760; Fri, 24 Sep 2021 10:07:12 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id j14so6921213plx.4; Fri, 24 Sep 2021 10:07:12 -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=bbFmrr1TyvFLF+bf8eu95bO8X1u5qIr9YPEWRBzPFitWO38QfrkNum7GX0/V3OqqnL IG9fciDr3OqlaUHzWcTifkgr14o/iR85BcdpNl3iwJpeskHOATjFHAIlMecwrKXXcu/p 7cADcZYLvLUbFhr982wNsEgXTF8HQMuNsr2x08mwJaN2T/BvniFhkoyzE5skeEQb8OR5 5+lv6vLzPKj9Y5ZEs1fiE3JHN7oyuATUwTMA0zT7N+4AxSsSZ4CAEjmvajniHmC2Go27 UOOvJgsD6i7ty5qwhdMY202OckS0DCvrhZeZ/KuBw34D6ybrVd0ccNUU/O92FHduIxLU y8Jw== X-Gm-Message-State: AOAM53282KOxMgU0UvRWfglBBxhESxYI4H5c1sPrFeCdBjpIU7tBddkO P0vAhBNnx+GBP8dix3mWv4gcIf6BzKY= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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: 12516133 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 240A1C4167E for ; Fri, 24 Sep 2021 17:07:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 09F886124B for ; Fri, 24 Sep 2021 17:07:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347491AbhIXRJH (ORCPT ); Fri, 24 Sep 2021 13:09:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344944AbhIXRIx (ORCPT ); Fri, 24 Sep 2021 13:08:53 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34D1AC061766; Fri, 24 Sep 2021 10:07:14 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id t4so6972191plo.0; Fri, 24 Sep 2021 10:07:14 -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=bGQOKK890ZSQygRnBQrQeH3brIaD53FSrg3WcEUyLXhvMnHipLGfi5XnTUKs31dlk6 gGK/f8m+A29+p4dp7k+kRDYq6OUUO0wR3vvYokOa/2LyCLXQx5pfngJ6pm+9DUqRLxkK yAJ0FmGCjXmHHXtMllvC+6Hbj24EvHCV/OuIEGbUJv5NCs5HpgXGxQqDUdj3vLf6whuF x57UhivkKiTiPtKb6itMPPm85iRCfRZ6UZ1bmMrX557gTgQf5PiFm5dlxcsJB4Y2AddU 3OdGeHH63HZ966DMZq0Iwy1o0TTfU6XZNQ68jHt/enupFo/ddKCkhJ+OnzNbD17sdGw9 DG2A== X-Gm-Message-State: AOAM5328fwCkRPsYrtp9ZF7jEbC84pY7XZF0cTd+wdFboq/g4/ZuT3qn J1QAfzWY2CDi7I19pz6TYUGXUz2/1BE= 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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.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