From patchwork Tue Sep 28 02:27:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521571 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 D8821C433F5 for ; Tue, 28 Sep 2021 02:30:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9F77161156 for ; Tue, 28 Sep 2021 02:30:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F77161156 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GgxPcGDOTZzJMxNXaYE/4kRGeQEmkmVky/laO60q1Ks=; b=Nlgec/xQUx1lSa rvO7nG0NviXMlQyqt8uiNAV1/mTyZ8KODYiuq9Bba0vEr1GAttrqHYgl+itgR4THU+DALyKwrsiE0 AVew2sxf4gBDdG6wQgNwTh/hwoeYkHm4SnI8zUyhMILJ7RFdHuJXS//N5cZZzpKOpG2qO84QeSsBZ bUE8sqDWK8oyvqUl9Wu940804vEdFLZtp147MUnMLobzz1QwfScqovLLUHkCThD2H0pow2Y7zveqo 2hJcJ+DZ5XJfpGYLQMPK29Z2eWe66ebTgZEt4b8UbUiVIsg3cKqkdiDQtCnn+8hRnBLNX40eiPhKy t4cWIB5t1Kg9PiY0rElQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qP-005G36-C5; Tue, 28 Sep 2021 02:27:45 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qL-005G2D-DY for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 02:27:42 +0000 Received: by mail-pf1-x42b.google.com with SMTP id c1so17573837pfp.10 for ; Mon, 27 Sep 2021 19:27:40 -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:mime-version :content-transfer-encoding; bh=sdoc9RGE6gS4jaJ958J2ofqibe80c4VFSM+XdfrkDLA=; b=mtX21lszSTfglc2i3EQDgr62JNajWdAY+JjGhXstTLqdg6lDiHN9h/TRcPu/dhq2oh Psj9h/SiYSS/PlFx2pjhludMpLWHw8OeRvHBrmDR7+6/E0qRZM8KD+HZlWD2C9K7CQvD jGjL4o7rHwJY46jyecF3GatRFaX0YOHs12+RxX+ODXBvLv/8h0SEXHOwiJ9wHUd+uVq5 LxW9Stdt58ETnay+iafY+Yj4iI7NNJGjf+YZIeznWpljqUHRDi+sMo5zbsqs8y47Bic2 Pu0fR4wbAbBJ3i+0S0KV0Sf6BLN0dPzAo7H7H+59+A7tZ0XU2SKY0wDNkIIOGDpU5cln ZeQQ== 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:mime-version :content-transfer-encoding; bh=sdoc9RGE6gS4jaJ958J2ofqibe80c4VFSM+XdfrkDLA=; b=CAAiEgF7ZoFtX197Y4koVGUKsq9MhO6ow0jnY+jJUXy3Yr6Rnt0pfIzBOi8Bx1+UCI 49zOPn+eLefqZGZGjYQxP6w/HEXzulfGhKCJ/6dnJohD4fwoHUgi1kP8tZV8FwJ6y+De 4Hi+8QqEtbU2i+CmqJXa9b4Dun+iZkqGm8980jjtou9QP6cYp7rE+KI/GZf0Io0hzJJe 6T9rBDHoZT+BrDa8O4rgA/xotyFQDf5MEag8z4EZONlktYW2b0L2ETlvC7YYQ/42Vwpx JbZCagSHskcGEuil+qXLD+kNvDSrFvrMd23rr6QWLR+MhvW5jCBjIR0h7RKe1q3zcR+E mzyg== X-Gm-Message-State: AOAM530VL2SxNzJAwJ0M3vXpeokZ9uCq/YyyYqzbWvAv6Etw32s3BKeb teJ/zSQosMSCwftDAlB5kWA= X-Google-Smtp-Source: ABdhPJwLwl8KZAeBw6t/iXisbwEJ73khi+8+AhiS7gDicWv/Y/8Gt+bOyV8q5MpFH7fpuSBWUqh7fg== X-Received: by 2002:a65:6a15:: with SMTP id m21mr1603064pgu.415.1632796060297; Mon, 27 Sep 2021 19:27:40 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:27:39 -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 00/12] Modular Broadcom irqchip drivers Date: Mon, 27 Sep 2021 19:27:03 -0700 Message-Id: <20210928022715.369160-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210927_192741_498481_F755B4C7 X-CRM114-Status: GOOD ( 17.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Thomas, Marc, This patch series aims at allowing the 3 interrupt controller drivers used on Broadcom STB platforms to be built as modules in order for those to be shipped in a GKI enabled system (Android). The irq-bcm7038-l1 requires us to export a number of symbols, which is not great, but there are not obvious solutions other than adding accessor functions to get the same information. Assuming you are happy with the changes though, please do take the last two changes as well through your tree. Thanks! Changes in v2: - avoid using irq_to_desc() and use irq_get_irq_data() instead - re-order patches to avoid linking failure for irq-brcmstb-l2 - removed the use of .irq_cpu_offline() and converted BMIPS to use irq_migrate_all_off_this_cpu() - avoid exporting of_irq_count() and use a platform device passed down from the irqchip platform driver registration code instead - added kernel-doc fix Florian Fainelli (12): arch: Export cpu_logical_map to modules MIPS: BMIPS: Remove use of irq_cpu_offline irqchip/irq-bcm7038-l1: Remove .irq_cpu_offline() irqchip/irq-bcm7038-l1: Use irq_get_irq_data() irqchip/irq-bcm7038-l1: Switch to IRQCHIP_PLATFORM_DRIVER genirq: Export irq_gc_{unmask_enable,mask_disable}_reg irqchip/irq-brcmstb-l2: Switch to IRQCHIP_PLATFORM_DRIVER irqchip: Provide platform_device to of_irq_init_cb_t irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER arm64: broadcom: Removed forced select of interrupt controllers ARM: bcm: Removed forced select of interrupt controllers irqchip: Fix kernel-doc parameter typo for IRQCHIP_DECLARE arch/arm/kernel/setup.c | 1 + arch/arm/mach-bcm/Kconfig | 4 ---- arch/arm64/Kconfig.platforms | 3 --- arch/arm64/kernel/setup.c | 1 + arch/mips/Kconfig | 1 + arch/mips/kernel/smp-bmips.c | 3 ++- arch/sh/kernel/smp.c | 1 + drivers/irqchip/Kconfig | 12 +++++++--- drivers/irqchip/irq-bcm7038-l1.c | 38 +++++--------------------------- drivers/irqchip/irq-bcm7120-l2.c | 28 +++++++++++++---------- drivers/irqchip/irq-brcmstb-l2.c | 16 ++++++++------ drivers/irqchip/irqchip.c | 2 +- drivers/of/irq.c | 2 +- include/linux/irqchip.h | 2 +- include/linux/of_irq.h | 5 ++++- kernel/irq/generic-chip.c | 2 ++ 16 files changed, 55 insertions(+), 66 deletions(-)