From patchwork Tue Sep 28 02:27:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521543 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 DBAE8C433FE for ; Tue, 28 Sep 2021 02:27:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C07AC611CE for ; Tue, 28 Sep 2021 02:27:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238642AbhI1C3c (ORCPT ); Mon, 27 Sep 2021 22:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238545AbhI1C3c (ORCPT ); Mon, 27 Sep 2021 22:29:32 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96D15C061575; Mon, 27 Sep 2021 19:27:53 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id lb1-20020a17090b4a4100b001993f863df2so1591996pjb.5; Mon, 27 Sep 2021 19:27: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=i0AUyB2sOpCKW6OjZ4jzAR2Vztgfecasij1zuMuy22o=; b=p9s7OQ8TW3B7mOkmDYXYe0Wq24C1wtyFzw3GockKWL2hlJ48ocOVdyr6i7w9TdbmcZ f66rdBbWzNHpgQWJbcsB3AxxspaY9RjokP44hFZ0PomE2u6UIDXxLKICiE4LSsHiluIL cW73LAiedV1l6bZCQCy8SgZES1GZST7i18vuaR2k6Gy+WlZwkCCWtGeDqSO6tyoeFBnF SKXXOb9gMJJIRBiZEA45MAHBi2LIQcWkV/tYx4Ui4EdwMDDAKfrblCuS1HZMQ4sS/XNz Au3Snoo1T2vEgLib5aV8buy0W/kU4qviA8AsvKs8a1HtToF/Dfy3U0idlMa8PNvyY8ua th5g== 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=i0AUyB2sOpCKW6OjZ4jzAR2Vztgfecasij1zuMuy22o=; b=15KfrwtFPI5uVBZdgmjAeLfFbiCskBRf/7AUUTH8t7ocMudFaUtlJdC1b4RhWQOSSt cEaSEEQjFMb0S2PuvhjBCx7o+WMS8UpeTMYMj3GiwdHIt97peT7rcSRVwW7m3DLPxH12 0ZQnklqzglp6Kud3b9lDPl+SKQk6rrtiMKUgmwF++nS6uYEu2bW0aZLxdDcfqWHQ7/sq wFL0zVuIlYh3QnydIXk+4t+I/Yek3cK80KIQAfd8kFAHX08Zhx5s+znJxpJuQTqXeHPK 5NdHq3ySmB7kLGJryLLkC8U2uLgxKt/neCfwKZYIqWQM+RnsW0Tsa2sEMZWG/+3BkxDN Ou+w== X-Gm-Message-State: AOAM532c91o5saVWjDc8b7mXnNBLBqbOVEqJwdjNF/bnY0gzvWz4PUZm 1AY+xvAdFaoi2LzCHJcVT+qNAgT5zX4= X-Google-Smtp-Source: ABdhPJzGz+eVNEqSY0DfTXBtwCCb3Ikt+yFBapGOIMIO+bqczMCYnuiG3Rbvb/PFqOD5252NQXxkPg== X-Received: by 2002:a17:90a:4618:: with SMTP id w24mr2661385pjg.142.1632796072796; Mon, 27 Sep 2021 19:27:52 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:27: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 v2 01/12] arch: Export cpu_logical_map to modules Date: Mon, 27 Sep 2021 19:27:04 -0700 Message-Id: <20210928022715.369160-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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. This follows what MIPS has been doing since 2dc2ae344e0e ("MIPS: Export __cpu_number_map and __cpu_logical_map.") 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 Tue Sep 28 02:27:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521545 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 16B46C433EF for ; Tue, 28 Sep 2021 02:28:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F39D7611CE for ; Tue, 28 Sep 2021 02:28:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238545AbhI1C3o (ORCPT ); Mon, 27 Sep 2021 22:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238655AbhI1C3o (ORCPT ); Mon, 27 Sep 2021 22:29:44 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7926C061575; Mon, 27 Sep 2021 19:28:05 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id k24so19632522pgh.8; Mon, 27 Sep 2021 19:28: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=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=e6hUsgp9s+6hi7FCBSwpdIC1kHArvrqQ4n8QTdtgAoAMxX/qpQeVbi70ewlXcwVHrF tduiSMubvBsYxyU/ZCRx5j7UmiWLCXERE/GncKmEQa+79sau74qMWguGqbfnQ+NGjxRr 2OY+vZEjnX/foqslYn0A9GKA+7a9F/ECEY6GLtfDQiVPE+e9v4KN+Xhv2cnI3kmufPbb sHVn82nNvgEYY/Z45AQAO0fjHyy0gW70h/FRijjnkEwk8EMgaAlW7kS0MofxiFLIDbC6 /u5Oeoaf6AU8yWuwifuhAn9uFP9I0iNcFRZSTFJnJg2+Hh0W5RFaqyXaGWVW1XKW7UOh wJsA== 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=GyK23hCAo9rrYB5DytAMn+XEn6byxlXYhtxgWpFOWzk=; b=pfS3G7+upp9bfXJDL2ciflSX9ajG6k5LjyccguAHa9wK8yKBk+swLEDB3OCRs45QwJ sbv0/k23xWHXyMlolkyvFDHw8L6os1U0okYuNFnMcWk5WP0Uy12pHH0k+KlCFEbEkR8b xZLj7VCoLjt8lDL3yZHtSzhPM9LdfwWNfTO0bDLheoQj5pHXxD02hqULLcmjMdTJ+ZPX S5k60OVYyeMowngMi78YvN7xOEp1EjvF6YeKj3wsPHi6csHHix9u5+5FcqJa+5c7SAOj tazZenJ2YSgoM2sOJDst8GjfBl8pfNjT9XB6ZlKXXGqpFgJ+Yz4PXLYoamPQWTAhTX2w bHBQ== X-Gm-Message-State: AOAM532qeughZ/DGVwe6oOsu0NmFwgi6iSBf+3STGxewxTqxv6mORXmf WtSZltHVkoOj7OL+E/IZ/hriUW7es0c= X-Google-Smtp-Source: ABdhPJyobfyudPj6n9/ZS0q1ZaVWwjhrSnMWDSUeZb/5aL5YPeLO6y66yGwrVd9gtKKVeT99JygWWw== X-Received: by 2002:a63:1d2:: with SMTP id 201mr2448429pgb.2.1632796085141; Mon, 27 Sep 2021 19:28:05 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:04 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Thomas Gleixner , 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 , 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 v2 02/12] MIPS: BMIPS: Remove use of irq_cpu_offline Date: Mon, 27 Sep 2021 19:27:05 -0700 Message-Id: <20210928022715.369160-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org irq_cpu_offline() is only used by MIPS and we should instead use irq_migrate_all_off_this_cpu(). This will be helpful in order to remove drivers/irqchip/irq-bcm7038-l1.c irq_cpu_offline callback which would have got in the way of making this driver modular. Suggested-by: Thomas Gleixner Signed-off-by: Florian Fainelli --- arch/mips/Kconfig | 1 + arch/mips/kernel/smp-bmips.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 771ca53af06d..2c03b27cec02 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1782,6 +1782,7 @@ config CPU_BMIPS select CPU_HAS_PREFETCH select CPU_SUPPORTS_CPUFREQ select MIPS_EXTERNAL_TIMER + select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU help Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors. diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c index b6ef5f7312cf..f5d7bfa3472a 100644 --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -373,7 +374,7 @@ static int bmips_cpu_disable(void) set_cpu_online(cpu, false); calculate_cpu_foreign_map(); - irq_cpu_offline(); + irq_migrate_all_off_this_cpu(); clear_c0_status(IE_IRQ5); local_flush_tlb_all(); From patchwork Tue Sep 28 02:27:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521547 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 5A7DBC433F5 for ; Tue, 28 Sep 2021 02:28:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43F1761247 for ; Tue, 28 Sep 2021 02:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238700AbhI1CaA (ORCPT ); Mon, 27 Sep 2021 22:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238687AbhI1C35 (ORCPT ); Mon, 27 Sep 2021 22:29:57 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CCF6C061575; Mon, 27 Sep 2021 19:28:18 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id om12-20020a17090b3a8c00b0019eff43daf5so1586778pjb.4; Mon, 27 Sep 2021 19:28:18 -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=knXL02VOmkFLU9YLWF/5g5SfaxjLRPWcMFGGkfQ2MJo=; b=IEpuAnVKkRGGpmkR3JRYp3hSXaykp/XcRH4sCNW7S2bxpcsm1bIiVlnvIKBSxg1ZI4 k9gaPOetvKoi8TYXaHhlgmmLySvWPMMJKjka1HLG8Exb33IRonmQg1+nwy5deFVEDQ63 9MpKnfkfr237ysWst9gq9euNuC8z0HlyCga5Y+WmoO2g39tAFcDEbAd+ZtFPYmSh/2cF 7a2lnqpkh3JehXkX03WI15wvaMiBKEZdNpqmpMNXBojuUQAoVwRPKgnzKTXYUTwgvWGw 3r5IkHHSMOuLHq0Iyvf9ufID+G/9hvRT+mTRd/FU3mP/E4UoOEm72LQ3VgjvmlPMiQWO kh+g== 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=knXL02VOmkFLU9YLWF/5g5SfaxjLRPWcMFGGkfQ2MJo=; b=dLwHwsOzGR+j+SZc8I5i4jwxmhkhJxyz9QbxbkUSoRZVfl+V08gHDB6gNGJWNd3Eu0 X1A/50v1hdPElZI0NOIcBYaAUSoFDjkqW7RE4yisprc1NruYqCRBQNU7qPLXqkccu3Ik JxwYMbUgi5xilcx9oLpdgM+Es03cv6UPMlMxx0pDnkuZ6LDRDuM63462A7xzQ6PxlEM5 Nhjs8jjUbgYJz94lgagDP8NVf3HCCa0jnBfAO6oMpMWLBjOaLBkSSZAszjPjLxjmxPhx VL0D3QJScSMwmE9oIkmkDbrBER3QuuKxCLF2aUA+arxE3R64Yh4HsUfuYQaQrrYEgijk Eplw== X-Gm-Message-State: AOAM531/LZ/k76ffrF08l7HOEAEIVgE1y63MiRx0Jf7XFWVx63F+3/e5 Q6Qd88mEORnkNNwN5WsBxGO9iOf61Jc= X-Google-Smtp-Source: ABdhPJw5V1IpWkN3QRbTPt7CY9BysyOWfFNGRznfjsEbS4Ij4aNIezxGBaRFECdTUh7caWe5aUSBRw== X-Received: by 2002:a17:902:c086:b0:13e:2b52:29e1 with SMTP id j6-20020a170902c08600b0013e2b5229e1mr3023429pld.8.1632796097360; Mon, 27 Sep 2021 19:28:17 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.28.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:16 -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 v2 03/12] irqchip/irq-bcm7038-l1: Remove .irq_cpu_offline() Date: Mon, 27 Sep 2021 19:27:06 -0700 Message-Id: <20210928022715.369160-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org With arch/mips/kernel/smp-bmips.c having been migrated away from irq_cpu_offline() and use irq_migrate_all_off_this_cpu() instead, we no longer need to implement an .irq_cpu_offline() callback. This is a necessary change to facilitate the building of this driver as a module. Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm7038-l1.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index a035c385ca7a..750156217c82 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -221,33 +221,6 @@ static int bcm7038_l1_set_affinity(struct irq_data *d, return 0; } -#ifdef CONFIG_SMP -static void bcm7038_l1_cpu_offline(struct irq_data *d) -{ - struct cpumask *mask = irq_data_get_affinity_mask(d); - int cpu = smp_processor_id(); - cpumask_t new_affinity; - - /* This CPU was not on the affinity mask */ - if (!cpumask_test_cpu(cpu, mask)) - return; - - if (cpumask_weight(mask) > 1) { - /* - * Multiple CPU affinity, remove this CPU from the affinity - * mask - */ - cpumask_copy(&new_affinity, mask); - cpumask_clear_cpu(cpu, &new_affinity); - } else { - /* Only CPU, put on the lowest online CPU */ - cpumask_clear(&new_affinity); - cpumask_set_cpu(cpumask_first(cpu_online_mask), &new_affinity); - } - irq_set_affinity_locked(d, &new_affinity, false); -} -#endif - static int __init bcm7038_l1_init_one(struct device_node *dn, unsigned int idx, struct bcm7038_l1_chip *intc) @@ -396,9 +369,6 @@ static struct irq_chip bcm7038_l1_irq_chip = { .irq_mask = bcm7038_l1_mask, .irq_unmask = bcm7038_l1_unmask, .irq_set_affinity = bcm7038_l1_set_affinity, -#ifdef CONFIG_SMP - .irq_cpu_offline = bcm7038_l1_cpu_offline, -#endif #ifdef CONFIG_PM_SLEEP .irq_set_wake = bcm7038_l1_set_wake, #endif From patchwork Tue Sep 28 02:27:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521549 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 C8498C433EF for ; Tue, 28 Sep 2021 02:28:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B18ED61213 for ; Tue, 28 Sep 2021 02:28:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238703AbhI1CaJ (ORCPT ); Mon, 27 Sep 2021 22:30:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238702AbhI1CaI (ORCPT ); Mon, 27 Sep 2021 22:30:08 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67B51C061575; Mon, 27 Sep 2021 19:28:30 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id q23so17592612pfs.9; Mon, 27 Sep 2021 19:28:30 -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=b+ZBi3anDomFQV4e/giygkqAUlU4kNEpUMbqtcbvyD0=; b=MplEqzzK4xTC9UAcbtroCY+QmIaqPsRBpGlDBsCEIKYFMuYDE/MVKodgGAiLpy8P8m bLx/lzjNcqqxkZs3MK+MV7UuEUV1v2RrG3EpzzeWvSAfj8Z31avBXP00FBt+GkH2uyS1 8vZL5CmeuDajceZT/wThQaphxaspS4hEVVcIXKxlJP+OjT3f3cGSUyplt+QqBXr/vB5x LwMwbLEpxLAllvRntp6uDXVcATBelyFbahZPWDn3JkmBj/3hbZuYg8iDFvbpHn+BsyKg CkBR+ZFTH0Hn6WSL6/kjlCzjPhN5ivQfxqyIrVAOlQurr3lis0ufU1g5XaR/uN/3wOUJ oMwA== 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=b+ZBi3anDomFQV4e/giygkqAUlU4kNEpUMbqtcbvyD0=; b=YgXTsuOe4Dg8m2ry6/Jb9kTCOnCtW/631+dWv4So+xEKwfQmXODpvj9CousYRrwYKi cF03qKRe+CMxXXnVc2ZEjrRuZRr1uP7nkFerGU4GaCmZFkBvOzmWM18vLLtCj4z6pUT4 00jFFljxzmZzuJMLZM4J4NvSK3cHXtAOhZmqOcNgdmbEG47Vi2t7BgXn4Cs+6/J0JA0h unJK809cNPlWRvv3lb+um2RJxndEkBL2UI7FRTBYN/sUBwJzVOOLRabbB+mtQDxkpjQm T5ksIknCrwBRG8lMfj47KijyV0/OuOvVnPPORL4urrsBu0Uvx0JGWMnO7CeQvMQdAW5k k0Dw== X-Gm-Message-State: AOAM532lqZOdNJi7dWHHPUsIX302pBqLToGxl67T7ErONWHs2CZwAi07 holMFvS1yZoTSHGDFE/0730D+S6XhV0= X-Google-Smtp-Source: ABdhPJwsXY5F3fh8v41zCYbr8P4388C+/C1KS0egA3vuIqQk3LKWhTCOUeUZOGdx2akQ5y0x5HXy4w== X-Received: by 2002:aa7:96e1:0:b0:44b:7b1e:1cbf with SMTP id i1-20020aa796e1000000b0044b7b1e1cbfmr2900209pfq.29.1632796109539; Mon, 27 Sep 2021 19:28:29 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:29 -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 v2 04/12] irqchip/irq-bcm7038-l1: Use irq_get_irq_data() Date: Mon, 27 Sep 2021 19:27:07 -0700 Message-Id: <20210928022715.369160-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Using irq_desc_get_irq_data(irq_to_desc()) to retrieve the irq_data structure from a virtual interrupt number is going to be problematic to make irq-bcm7038-l1 a module because irq_to_desc() is not exported, and there is no intent to export it to modules, see 64a1b95bb9fe ("genirq: Restrict export of irq_to_desc()"). Signed-off-by: Florian Fainelli --- drivers/irqchip/irq-bcm7038-l1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c index 750156217c82..14caf32dc23e 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -386,7 +386,7 @@ static int bcm7038_l1_map(struct irq_domain *d, unsigned int virq, irq_set_chip_and_handler(virq, &bcm7038_l1_irq_chip, handle_level_irq); irq_set_chip_data(virq, d->host_data); - irqd_set_single_target(irq_desc_get_irq_data(irq_to_desc(virq))); + irqd_set_single_target(irq_get_irq_data(virq)); return 0; } From patchwork Tue Sep 28 02:27:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521551 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 22A86C433EF for ; Tue, 28 Sep 2021 02:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A54261156 for ; Tue, 28 Sep 2021 02:28:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238721AbhI1CaV (ORCPT ); Mon, 27 Sep 2021 22:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238698AbhI1CaV (ORCPT ); Mon, 27 Sep 2021 22:30:21 -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 B3943C061575; Mon, 27 Sep 2021 19:28:42 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id rm6-20020a17090b3ec600b0019ece2bdd20so1606796pjb.1; Mon, 27 Sep 2021 19:28:42 -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=jyog/3toJk4CePtjAlHdqTMKSqb5xrYzdsOy22XZ4IQ=; b=g8EXPYUipqSUrO7pNlz0kkvFZ1U2AqQJugKKvuytvdMesKuLN6MBcrxlSQRNurHQkL zj91YK8ArdXtrz9YkMEKi5z1w0oerBNP1RYQ4C34YbrxkjIdIQC5qvNCIrdH0k9ItA6R 17DzO5n/mDgIe+7M0YrpCnmBUx2nWdoaGd52nVrh0XotFacKROt/sfvpAlYADIUeVOlH zrFvJ9KkAQzWlf36m5lchwFdZTE6gefxsQtiQTSJSCpQIu/2gMQ4Dbw4UdfvdBM0MoTY 2whkBoOWD+MJvmv0PRFZ2akd3JmS9u5ACeCgqjDXRm/JUX+lPyQ4k8wUn3StGLvl9Sj9 EwjA== 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=jyog/3toJk4CePtjAlHdqTMKSqb5xrYzdsOy22XZ4IQ=; b=ytRuDKN1EiLDaLT0NxG0PpmDdEBAy1MZaHG0T76LPYm1O1z+07iRkMCGsYHxz/+KHg fpm3IhafyA21lc2zSQY2InSYVhGKSXyoR96brZAEsdehKgAlkAg4p9b9ETqX38MRAPj4 S/F/kGIHtY6HYP/sDIJfdpOw+pRqL25h2WjrTa3u1ZPKsJ4Jg71tJGT0eeEbGLmsA3zH Qs6pIYvWmmDPl58xj9g+6b69K8U8z2ZIdyNWoJ/Jy70eTUZTqw0eI+NK2V4Wyy0R8ayQ A0n2GFSh3mCwMkwsc0Fx6AvsmovMF+vwT8o+r57cxEBpOsosiMp/IRJmI9yYcsfXjunO xoBw== X-Gm-Message-State: AOAM532YxzgE/dQAYDEPaP0R9Pq9ePhzafkOUJBpFeTTDtNKKB7bwlKZ uaeBBW7XZNINtPlurOQqYhuqaEEr2Io= X-Google-Smtp-Source: ABdhPJxuGf3jmYWizduu7tfXB0TM2K00czhL7r+Brk9EanH/GJJXyA+2eq5YnaTZJzNy/OleXJCbRA== X-Received: by 2002:a17:902:b696:b0:13a:7871:55f5 with SMTP id c22-20020a170902b69600b0013a787155f5mr2993207pls.60.1632796121950; Mon, 27 Sep 2021 19:28:41 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:41 -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 v2 05/12] irqchip/irq-bcm7038-l1: Switch to IRQCHIP_PLATFORM_DRIVER Date: Mon, 27 Sep 2021 19:27:08 -0700 Message-Id: <20210928022715.369160-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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 14caf32dc23e..78f029bac129 100644 --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -454,4 +454,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 Tue Sep 28 02:27:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521553 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 569DFC433EF for ; Tue, 28 Sep 2021 02:28:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C919611CE for ; Tue, 28 Sep 2021 02:28:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238743AbhI1Cae (ORCPT ); Mon, 27 Sep 2021 22:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238745AbhI1Cad (ORCPT ); Mon, 27 Sep 2021 22:30:33 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9EE6C061604; Mon, 27 Sep 2021 19:28:54 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id h12so3504790pjj.1; Mon, 27 Sep 2021 19:28:54 -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=N1gTh9rFur/1mj+KHXoIm9Lnqb4rWbe1Vv1z93jHoFkzZzU71z1oo8hYDzzOZtctwe pgDGQuxiAz9qE9D1nw9XiPDYJJxY3sW8PrVbNEY1BpEc/ZrUtu0YNKgn1MZ6s8sldn1K o3VXz9Q/wK2rR9xMGWLLUCjFlTvfYFw+7LIOzKy7JojsKx/MrZ5kaVCnNxW/+Lev7qPS q2x7nJxZB9PM3disdALDh5NYHyAdCUGIpHifABj7bCiwvWIEow69e9pNHzY8hLMirP98 uaRj/Duv8fBXsl/slvGpAv7978G2Bk5YI4EqrAA6tqb+n7UVnquoV2Rf+OvFIlhMgEWq CqiA== 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=hz3EnnY4UHOv9kVD5M7HLz/dQtY92vOXgcBtIfi4fp63y7D+qFgJ/gLZ8lUeeIb1Cz 9ifUgBcmSsceDGClzxwIejw/Bn7Z5PqTMlvAfbGSRdAP1Soat2e1nypy1BsZ++20Tjzv QCCm4mJomIMV6RnYTmlfL04p/e85Z1MSVrIT2VCDYAYjV0LRrTdTOO6VUEUpfKXud8+/ AV9aPS+2lGYb8Ddj3mCWdk0U4yO2qjDF0i/p2GB5Sapp/LbzFWqlKeVaHwpEztGIeJEz EPQ8i29jmisroZa43FRz8/Mhe4TmyfXb3rILwBzg0whhQ1B4K6vPO3SsPXYBNV8AgoQX Yq5w== X-Gm-Message-State: AOAM533gFRFxbuIIWEvhuF4+GY6Vbh2iIA3atxguZ44DXy7fmQqXHV9V 9+zk9wtjhcXUBo+JiUpnI3hqyNvuyJ0= X-Google-Smtp-Source: ABdhPJyGokI5IRD5fZh1+wouMAgSK2g5E4Q+/8ilRAPfu7Qfc6axwdlu7fLnabubqDadddNY09DUHA== X-Received: by 2002:a17:90a:af86:: with SMTP id w6mr2711826pjq.8.1632796134087; Mon, 27 Sep 2021 19:28:54 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:28:53 -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 v2 06/12] genirq: Export irq_gc_{unmask_enable,mask_disable}_reg Date: Mon, 27 Sep 2021 19:27:09 -0700 Message-Id: <20210928022715.369160-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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 Tue Sep 28 02:27:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521555 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 52D2AC433F5 for ; Tue, 28 Sep 2021 02:29:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40D856124B for ; Tue, 28 Sep 2021 02:29:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238626AbhI1Caq (ORCPT ); Mon, 27 Sep 2021 22:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238740AbhI1Cap (ORCPT ); Mon, 27 Sep 2021 22:30:45 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E3FC061575; Mon, 27 Sep 2021 19:29:07 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id c1so17576047pfp.10; Mon, 27 Sep 2021 19:29:07 -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=avArYIgqveoiqNyD88bnUiDBLca1zT5jiBXVayToI+PO+qwNqTUXrQ6m9rJaQhc0sM eTw51QB31qIppvgLVeFAvLh+bf84SZTPDUx5ujF3OBNKCjzUHJ5nvrl5YYOF3VUowFpk yqVRPTjIN1GmDS0DjaAtqaGGzd9tbyzChbkxUKNCRfD40Bgo3okAVdsGU7wWkCPnhiOD 3q/CecxnXb+P47LIbnJlZzhRXqizCVWUBsSRXkXriqWt+UBLFbyR0IiAC9VzSCapo7rJ 5fZcNJQxSkC6p+L8rHdkIVJpCMZIrRVL70OFy6tvO2hvy7y6rQjnoXHDVTS+w3WQD7Dl MURw== 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=rHF+BfWvqXsvFC/bb5fLoumkYB/frgy/251PcQdaNsrPYva9VE6gtqRAJrsCePj6pd zrOHrRMTc59vcKjJ0+VKkRJ/s4hzozPKct98YzwU0rM+l19zqBcBUYAlRihMptJKdC33 bo0FB933E7dtKlXYE4kYS1B2MUZDOuQ7UglY96mY6c4ornMX/FNdsMHIlnNgCr/s9rfw NMVfX8yVIZ9q9I9/jNNNRxAoQTsSPC7/dkGONxw7n27GNrcEe3J7FY9FGgZVjrXm+pDj KzBP4hmxv+yqgp1tFwjIlNyiuNtxYKLjnuAM1dx4taYbRDcc2+5ZMOyUJ+u9TSgnd7If Fo3Q== X-Gm-Message-State: AOAM532MQ2snJ7ICtz/yuQ3ffZ/nFHcKM/c3V2J1eWFcUUb4JLypPUgm PpLCwEIyLPtCoB7UOY0ZUcej8DLNipg= X-Google-Smtp-Source: ABdhPJxrXOObRhpa/JQHSjoFBdJMwRgQiZH5DJq2XWAOm/lf0/ZIAcPd78EiklkJG/+okaWOReZnew== X-Received: by 2002:a62:5a41:0:b0:448:152d:78bf with SMTP id o62-20020a625a41000000b00448152d78bfmr2825501pfb.77.1632796146397; Mon, 27 Sep 2021 19:29:06 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:29: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 v2 07/12] irqchip/irq-brcmstb-l2: Switch to IRQCHIP_PLATFORM_DRIVER Date: Mon, 27 Sep 2021 19:27:10 -0700 Message-Id: <20210928022715.369160-8-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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 Tue Sep 28 02:27:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521589 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 A9260C433F5 for ; Tue, 28 Sep 2021 02:29:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 88CDA6124B for ; Tue, 28 Sep 2021 02:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238640AbhI1CbA (ORCPT ); Mon, 27 Sep 2021 22:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238650AbhI1Ca6 (ORCPT ); Mon, 27 Sep 2021 22:30:58 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D2AC061575; Mon, 27 Sep 2021 19:29:19 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 17so19626931pgp.4; Mon, 27 Sep 2021 19:29:19 -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=3QThqxTZ5uzX8g3SWHj4WUPibxza6P9n5f90ZfsEf6I=; b=Sc/fOiG5FBGWfD5Mpa7eQeAjpUOeeIAanPYOEnXV7MsFIytNZUAPeGAK2MGtkwMczA nMW8dZ3yeNayGVC7uSbak+6ixei0Je+rr23F+J7R3qI4qhpTNcWcTp0LuhkF37OG979M iabGp88RfBqq84xEfWA+p+SyCIyFGN+uAPz7WunxzeU6EVhSrsYOD+hDYpy6G4HnZTia M3HEf30SrxwY+5+1AyAvgjgySCzfTY2CjiWSMcBXYFUE0GfDEV326E91R7hLr8DzbTOi lZJbocsTYhEbCk+uLRG/nHGoupBmdDdxZ0ncVISl2DwZ7xA2G2aIKkX5fVgKM0eyq+4E xOkQ== 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=3QThqxTZ5uzX8g3SWHj4WUPibxza6P9n5f90ZfsEf6I=; b=DHAfNDW5VOJ+l6xAzYYe7dj9PbTV5tgvAtKuG8HTaAmvaRV7Wjvg+MpFbxD7aA4+iX WIRqIgQ/eDVc7IQ4/BmIUv7Zk48f3DHcS+6N4EGXdUtlHmFiUMi58nvHNz5+KegXrIlx gGjOgD90tH/nd3bLrajePROqXnwTDx3qXHUlDIc1jJ9PqvNqpkZl6X3CTLEbpvX+moVI 4ZNXbd2d071+i2RDcvR+0Bp0WmKWUlubfDhQXivnPBPMb6u4kGmV8g2LFwx/NiQRh6Nn uqIezBDm4OfZ1mVN6Vq9dwURln2u41cv+tNpJcXXyIHtRlEKydnnxqtEnpQRQY93cc+i 3o2A== X-Gm-Message-State: AOAM532iuB0WHBmqIm1g8Y4JJ/+n8C8HY+shEL4rmKrCoMIBnpo2xct6 xYJGDkS2IVXPJOR4bar64Pm1h95bz4M= X-Google-Smtp-Source: ABdhPJyP2VEu5OlJ0sDp5X5h65NyS9eQ9y1/4IxbmDdxSNduktAW9wMXSswYWVD1gjzruN8Ug7oIOw== X-Received: by 2002:a63:b341:: with SMTP id x1mr2420629pgt.69.1632796158534; Mon, 27 Sep 2021 19:29:18 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:29:18 -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 v2 08/12] irqchip: Provide platform_device to of_irq_init_cb_t Date: Mon, 27 Sep 2021 19:27:11 -0700 Message-Id: <20210928022715.369160-9-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Provide the platform device mapping to the interrupt controller node to the of_irq_init_cb_t callback such that drivers can make use of it. Signed-off-by: Florian Fainelli --- drivers/irqchip/irqchip.c | 2 +- drivers/of/irq.c | 2 +- include/linux/of_irq.h | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irqchip.c b/drivers/irqchip/irqchip.c index 3570f0a588c4..289784eefd00 100644 --- a/drivers/irqchip/irqchip.c +++ b/drivers/irqchip/irqchip.c @@ -55,6 +55,6 @@ int platform_irqchip_probe(struct platform_device *pdev) if (par_np && !irq_find_matching_host(par_np, DOMAIN_BUS_ANY)) return -EPROBE_DEFER; - return irq_init_cb(np, par_np); + return irq_init_cb(np, par_np, pdev); } EXPORT_SYMBOL_GPL(platform_irqchip_probe); diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 352e14b007e7..18f3f5c00c87 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -538,7 +538,7 @@ void __init of_irq_init(const struct of_device_id *matches) desc->dev, desc->dev, desc->interrupt_parent); ret = desc->irq_init_cb(desc->dev, - desc->interrupt_parent); + desc->interrupt_parent, NULL); if (ret) { of_node_clear_flag(desc->dev, OF_POPULATED); kfree(desc); diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h index aaf219bd0354..89acc8b089f0 100644 --- a/include/linux/of_irq.h +++ b/include/linux/of_irq.h @@ -9,7 +9,10 @@ #include #include -typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *); +struct platform_device; + +typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *, + struct platform_device *); /* * Workarounds only applied to 32bit powermac machines From patchwork Tue Sep 28 02:27:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521591 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 CA684C433FE for ; Tue, 28 Sep 2021 02:29:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B705C61266 for ; Tue, 28 Sep 2021 02:29:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238764AbhI1CbK (ORCPT ); Mon, 27 Sep 2021 22:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238650AbhI1CbK (ORCPT ); Mon, 27 Sep 2021 22:31:10 -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 7F8D6C061575; Mon, 27 Sep 2021 19:29:31 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id h12so3505596pjj.1; Mon, 27 Sep 2021 19:29:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T+nuZjtMi8lifdnlhi4/+fNb2Wj4qKRZZKIw/UMDjOI=; b=d6J2f0FeVpkXY5AhAWv6IeyoWbAJ1N7QPf4/aPgFI2+zScDU1JAV6BSHaPl1UxsVgg 9r3gmyD3pclxnSnqITasL9cdXveDnZajiiVWnrrOCpB8X742fqO8nnuVjisGO9xb800O tV0+3MC243XX0u4+5cMXe5+70cPKAW8oxYHvTficTCRSuficZQVBsFR6xbk5Waj7CNwp Fg22IceT2AQzkjp8w0s9YNZu4VvoJz8nn5epl2xVDkq0hrlEW46OlmsJmy/HuFjaoTy8 77sECY6n88P1UYhHfA9/zgkD8ohEDIVoVQCb/OpZirPmN7q1iwebCQ1WWT0Uu/8mqr5A 9xKQ== 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=T+nuZjtMi8lifdnlhi4/+fNb2Wj4qKRZZKIw/UMDjOI=; b=4qRFU5E9aXgfnBES+PU59pPKfrVCkP7INdOY0ltFtPPHaimFODydEQOuEgONSSwHYJ Hcw2/GaPGnXM+iPFcIwzrZcIMy4WE09rDm/sYOIh1DZjY8bXh63mTguFNor7/VqsxDMt ZqEQeiVQ3Hj6kEZUKvhJVqX0b2zhGFVcK+24vbwtt0EUT5CKMpIPVhu6jcWZR0WIxnwk 5DmMCUWIAots5WoJZv2HZhPw2+hbn8OL5csExcNK9SWcFggyV/7o0rcUNd8AnYfgBvSY S5r0xKyXd3mclIWgZUzN3XUnEq/0KehTWtDUkRxE47vDGHBps0cIcImzCcBW8syPVsCC Sf5Q== X-Gm-Message-State: AOAM5334zfO1wLwA8X+bKIRwSHo3h+8uvfrxJNcnYjZVpELf34zW9awP REFdNGZqTehp4Ek4/VFL3hYYWuKo43Q= X-Google-Smtp-Source: ABdhPJwfFa/cLXR6ZrxhszdYreZWklI52XpSp0IKqvnfcxbGm1yDHT78oie6L7f1lYIgfRojjYOSaA== X-Received: by 2002:a17:90a:a78e:: with SMTP id f14mr2526344pjq.235.1632796170728; Mon, 27 Sep 2021 19:29:30 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:29:30 -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 v2 09/12] irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER Date: Mon, 27 Sep 2021 19:27:12 -0700 Message-Id: <20210928022715.369160-10-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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. To avoid using of_irq_count() which is not exported towards module, switch the driver to use the platform_device provided by the irqchip platform driver code and resolve the number of interrupts using platform_irq_count(). Signed-off-by: Florian Fainelli --- drivers/irqchip/Kconfig | 4 +++- drivers/irqchip/irq-bcm7120-l2.c | 28 ++++++++++++++++------------ 2 files changed, 19 insertions(+), 13 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..9b1edf7747fd 100644 --- a/drivers/irqchip/irq-bcm7120-l2.c +++ b/drivers/irqchip/irq-bcm7120-l2.c @@ -214,6 +214,7 @@ static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, static int __init bcm7120_l2_intc_probe(struct device_node *dn, struct device_node *parent, + struct platform_device *pdev, int (*iomap_regs_fn)(struct device_node *, struct bcm7120_l2_intc_data *), const char *intc_name) @@ -230,7 +231,7 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, if (!data) return -ENOMEM; - data->num_parent_irqs = of_irq_count(dn); + data->num_parent_irqs = platform_irq_count(pdev); if (data->num_parent_irqs <= 0) { pr_err("invalid number of parent interrupts\n"); ret = -ENOMEM; @@ -334,21 +335,24 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, } static int __init bcm7120_l2_intc_probe_7120(struct device_node *dn, - struct device_node *parent) + struct device_node *parent, + struct platform_device *pdev) { - return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_7120, - "BCM7120 L2"); + return bcm7120_l2_intc_probe(dn, parent, pdev, + bcm7120_l2_intc_iomap_7120, "BCM7120 L2"); } static int __init bcm7120_l2_intc_probe_3380(struct device_node *dn, - struct device_node *parent) + struct device_node *parent, + struct platform_device *pdev) { - return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_3380, - "BCM3380 L2"); + return bcm7120_l2_intc_probe(dn, parent, pdev, + bcm7120_l2_intc_iomap_3380, "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 Tue Sep 28 02:27:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521593 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 AF3CCC433FE for ; Tue, 28 Sep 2021 02:29:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 99B0661156 for ; Tue, 28 Sep 2021 02:29:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238761AbhI1CbW (ORCPT ); Mon, 27 Sep 2021 22:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238675AbhI1CbW (ORCPT ); Mon, 27 Sep 2021 22:31:22 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9829BC061575; Mon, 27 Sep 2021 19:29:43 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id on12-20020a17090b1d0c00b001997c60aa29so1048587pjb.1; Mon, 27 Sep 2021 19:29:43 -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=NjdUivUzdZIcWUfq2B+DqEDlK/vAyvuonMuyRazk71KUNcC4fpUD7TjAKBiGAyom72 mOflpP0y3cWkei6yTX8aSDptcYnqhEQ0mUZ177b5CzwilJdMs+mcezfWU5FaaSQ4ErHz rmUREEThVfR3BpmMWcNbpkixlNQn2w0OUtRrTXKJKBOpGPINlFrjNJzPlDUsMrfyCeg4 19OugXFdxnd8Hn5AZjcjiEqbgxVQ8ELNpIuPA7Tuv9fpAxIGoen0j5ylhH1xTe7yv0UE vNHaz3dmt0fNk6GRYa2tiAHeLOrhrm32oEmLAbbgyNLDdkiwMi0pKXZmRjVcZ1TIbXq1 ttEg== 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=J84Bcw4k/sSzMwq+WsxDQZlhXsRaeumKD5SZ/BxVCr+oScZmsLlTtmzIyl6yznX4uZ B9YVVmGdJNuxWIBh6oJycU2NaALoR2MhljlMRO+cityaGqGQDAS4Ngz/1WtfMM0UQTNF /spxoIio1UHHC8Q3gAYoOJ32kXj3yNscKCGoKSQEO5iuDuZ39SxieccNyw00NXxt1hCn s30K/WDS18GnM0ncp0BZvcmkRpEm4F1zHxyVrmQh6CSH5L6rnz1Y4nz5XCzNl2TLOtBs 1jfZxmz7I2MTF4YLgkjSkJ6L9UtjO6VnxBE/pyAviMCHqWZs26up5fENhoYwydZ9znQZ QDsQ== X-Gm-Message-State: AOAM531SkuqPuDb0Ww2GazNIOyoNsu7emYLvEL9uozruOl0PB3Yok8Bj ZJ1d3S0uz7OcJEuwWJMwMOtAc9WkGsI= X-Google-Smtp-Source: ABdhPJxGwwAps1QeBxtsZt7JyXBBjI8ez8OrLt7Uz9FaFSSrpN38TI9EVtDfYGOJM7LGUCpWsORpsA== X-Received: by 2002:a17:902:710c:b0:13d:f226:2e3b with SMTP id a12-20020a170902710c00b0013df2262e3bmr2509463pll.83.1632796182846; Mon, 27 Sep 2021 19:29:42 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:29:42 -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 v2 10/12] arm64: broadcom: Removed forced select of interrupt controllers Date: Mon, 27 Sep 2021 19:27:13 -0700 Message-Id: <20210928022715.369160-11-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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 Tue Sep 28 02:27:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521595 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 F2D56C433EF for ; Tue, 28 Sep 2021 02:29:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D80DB611CE for ; Tue, 28 Sep 2021 02:29:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238708AbhI1Cbe (ORCPT ); Mon, 27 Sep 2021 22:31:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238675AbhI1Cbe (ORCPT ); Mon, 27 Sep 2021 22:31:34 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9839C061575; Mon, 27 Sep 2021 19:29:55 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id s75so3117983pgs.5; Mon, 27 Sep 2021 19:29: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=cvv2iZxij6FWrFEEKivGkcFAPGtCwuGKeJ0S/lB+6EU=; b=fgJ8p9ast2DXIumZeFMG8dSVh7ItXK0mMdwQ+5I8syLYHOZ4M+TebIknoSTcmlrK7z C3aMTPLdWXH4h2AEDVg2EScfBSZNpHoVRBBA0c73a2pXrGHhDi4HXES2fTZRU4dsmZpy Vqw7akBx2u+Kd0lJUq72g+kXcBC0eDSUw8Os70L2aQXpzoqozkewirTquGgrJ/uSBxhB 2hAEKKN18zCBXfKhrfhfYoMWqLembagINeFPrPl5LPxEXaLWSXKdulAWToemnCO7HkgR 3vzJss41V/8y9xaoaMT6Vi91npjaKozhNXCQ44kOva+YPBd93ojNB60FMi+eB81M/Gch lbkw== 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=KE7b959nInUv2BOu8TM2HVtd3tQ4lRn2ssNxH452ZCIle3x3VdgsZG726FFnp6QPz7 LSPyNWu3Sl4yFmuMTH24vIJ9XoHM29RXn/ghBEwgjjn0L35vB8fyrY63iUVEQjxtiy1O 8clHVGPcvHBhlMP98ZtiGmApgbaxaDeSSy4v8BlFpGZ6NPIfRiwOC1qfWPnuuwxgtj7q VDZgoz0UCo0+Rhi4EvlMoZ3OBZbbM2WdhGn3NJJv0oTUFjUycNXLnHWb+fGORbzEzrAG rhQtIGpJFjEpHDWDcmXQHKuKookORuX+8TPADMR4DYGAFGnb5AvCHUGzao8uPjxWyI9h a2/w== X-Gm-Message-State: AOAM531LwAEGsmzY43CXM1Vtgo5WEYjbpDX5eUIwcsADvhTMhhLDh+wv j4kXmlVXrqwupNmTjKlXsyEjbReQPLQ= X-Google-Smtp-Source: ABdhPJxJ9GAXbLlPMq94ovLf5el453NlHICIDwWwckPVoOS1VtNVCoR/DobGsZ1iFSM02KJw8LjlRA== X-Received: by 2002:a65:6a15:: with SMTP id m21mr1609522pgu.415.1632796194982; Mon, 27 Sep 2021 19:29:54 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:29: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 v2 11/12] ARM: bcm: Removed forced select of interrupt controllers Date: Mon, 27 Sep 2021 19:27:14 -0700 Message-Id: <20210928022715.369160-12-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-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 From patchwork Tue Sep 28 02:27:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521597 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 90B56C433FE for ; Tue, 28 Sep 2021 02:30:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69F2F61156 for ; Tue, 28 Sep 2021 02:30:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238645AbhI1Cbr (ORCPT ); Mon, 27 Sep 2021 22:31:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238669AbhI1Cbq (ORCPT ); Mon, 27 Sep 2021 22:31:46 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B647C061604; Mon, 27 Sep 2021 19:30:08 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id k17so17629370pff.8; Mon, 27 Sep 2021 19:30: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=T26BgQWn/9mqdmIjsWawB6f+e1Yr/GOlus2xPhKaou0=; b=FVGOT4lE+moC9jlZYrn6KRcqzy/Eto8JdwUFBIKWXAo46jVj2EpGP3LWjwjnutgBzi JPp9D6ANtRqLdiBHuxCsY1P7or8P84/SKIyBEh7FuBgpX7n695VLqRbkLf6kfmJoa6Cp 2Dzq0Bsgw0X14RSuU+APBzMJi4rZoDOER6lRUGaBMMJ8wZd2yLlxbuQTW42UMTF7m47x MRzdNjRL8VCdzD4MeIFrWoFWviwwuRfZBEe+BcWHYLmhYv86IpzGVWJWzmcqA9aZQOG+ dNoAX1McnOqDwvi99kIL7irsWTeUpQrrTuC0JYkfutT5nqU5sqFitibZUT4dHS19giXZ l/cQ== 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=T26BgQWn/9mqdmIjsWawB6f+e1Yr/GOlus2xPhKaou0=; b=dLbR5G9Ne2jz5t1KqPfzXLxECYX3kSY6cbzHd+K2DVyJG9ys174bvHZCKJgKp4Y2ET 309b+PYnyqdUnFG/qpQbW4toaYQF4gR3VTqGmDffxARmEs2m26SJucmlcPhgRkuAA7mV UXIWiv3O+qZvfGz5hXkadokD/lekDfxD26LiX41tnKuZHN/+IYwcBTRZA9otj45ilJcJ IFD1wQfJljHBGZS6+BT9qppDxqYUmKwj9MTDwoGAahQZ67UCvXE6QMrie4qCROif/4YG wXfLMWyODeEoROYOOWkTXcEofEObRFMc0+I/sdZLVqv6Am/4O1uqNjfJpYxhHEmgUiSN csLw== X-Gm-Message-State: AOAM532UXIVKyU6hbP2AOQLbcLpZk/kNp3LzPCKInjdtQIbkP48qJ6sG IY+4nzSHU11IEVwQP0Vuod0eAmhmOIc= X-Google-Smtp-Source: ABdhPJzpkCNeUXkhItXyGD3iX47W58VqCnRHG9hP2LXUHicm81FDwZXF4yzSj/cyNaWatglN3EgHmQ== X-Received: by 2002:a62:14ca:0:b0:440:5279:84e4 with SMTP id 193-20020a6214ca000000b00440527984e4mr3116757pfu.84.1632796207360; Mon, 27 Sep 2021 19:30:07 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:30:06 -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 v2 12/12] irqchip: Fix kernel-doc parameter typo for IRQCHIP_DECLARE Date: Mon, 27 Sep 2021 19:27:15 -0700 Message-Id: <20210928022715.369160-13-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The documentation refers to "compstr" when we have the argument named "compat", fix the typo. Signed-off-by: Florian Fainelli --- include/linux/irqchip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h index 67351aac65ef..ccf32758ea85 100644 --- a/include/linux/irqchip.h +++ b/include/linux/irqchip.h @@ -23,7 +23,7 @@ * * @name: name that must be unique across all IRQCHIP_DECLARE of the * same file. - * @compstr: compatible string of the irqchip driver + * @compat: compatible string of the irqchip driver * @fn: initialization function */ #define IRQCHIP_DECLARE(name, compat, fn) OF_DECLARE_2(irqchip, name, compat, fn)