From patchwork Fri Sep 24 17:05:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516153 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 8EA83C433EF for ; Fri, 24 Sep 2021 17:10:20 +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 5DF7A61251 for ; Fri, 24 Sep 2021 17:10:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5DF7A61251 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=5lnkiRTVnD/xTGiYkK0gTbSjQYzQfNgQjHs5zQRl0YQ=; b=HEEjoy/D5ATADb 9mBRDXr9TxnsgzK3xsGe68kGVqrnSni4Isd19fAiUUJlGC2YzyLH27buV3kSK0YpbtuuMZBGaGcAf B/h7uW5lx/y85lfwtuszg8/h0VmuM/eWw0D0WEpU1/N8EpbJcRz7SxJMb6wnR80vnpvckATu4zFP1 FseXigbXdUKYcSe6vDCrdzjcHAjMj70jhoY2FGeinmCtmurndSZuUMd5GnlYrND2ZmaEYzMJp5UEA V6mFoUMw7Ewd/hA+Hg0soS8m3T9XD3pa9/H6onulguMR7LrWQ7Z4eOKg8VqO8TGcdr+E05JbmWHoV uYvs8Bk7sDX/t7s07mZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof3-00FAMw-Eg; Fri, 24 Sep 2021 17:06:57 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mToez-00FALZ-Ti for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:06:55 +0000 Received: by mail-pj1-x102a.google.com with SMTP id dw14so7421760pjb.1 for ; Fri, 24 Sep 2021 10:06:51 -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=+YjwIWJI4WiAn9JNxOIpnfCCCasVO98funIc1i+sVZU=; b=VnMUs10Z64fc5MnVVxLinqRw/2GxbPDll7a5uePijYe/MslkvCiW1ndNQj0FitH6lI L4BBNv+3dOWei2NvatRDoERayU5wubGsmkCZeTa8k+lEl4Eri2rO1vA28nTfrGxqFZWQ wJNltvIFRdXnF6ugGRn92SQujfIpiyym1qbFcSHH6hZnjZeVhsgjrKsLJlbLriarAEfr 7iZNHrh9/D2z+rUAwLojzjo2Ls+xk4brbjGBNjNyNLWIAaFbwhuRR0wzlpllm3YcMF0v vyMyiq71nebQB3gE/F5+OYD4NN8ubVzAKu10oGqBK7T4Jxe+e42LpXvkSnSa/aDIZ3h0 W6FA== 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=+YjwIWJI4WiAn9JNxOIpnfCCCasVO98funIc1i+sVZU=; b=b6mjntsEsjLgmw5ghtNJdbqJYuqO45MVvrVCyQJYHh/VhrdgTyhhd/FqXuQUVJ/lVV f1yYDxykOHLEq5RqhZTolh2Xly7jaZ1oD8F8TzDPKFM4XFNDm2/dE4qamiOhr1vIVfGa 4nSrEnPIRJ/gbWld6cHB6vmy2YYbc3s80iSpcOULS/iagYFLvG6BMTRK0N97WqpW0icb I65Bh5KnmiPE3AZc5zSXTo1uk7btgRULaGf/BIhPk3hoixgnH5Rw47idUsZrKDPmoLFj WeA5LE37VMvj2kqNr9hkcltBjVCkF5GRX+z6jwf1tY9urWVEKs8WeRaQogoGGXTuWEls BZJA== X-Gm-Message-State: AOAM532dH4iw6am3d9MDBNsLijlV1r9b8vUQRWE5JzHmNs9RX+tZyrPf Q7leLYgWIW6V8yQ9OTHWGj0= X-Google-Smtp-Source: ABdhPJwf14SoPtN5f+4wd2sMqO/DEVoPO9wlvGAdbWPcx5dSdBoP8h9nyv5Dpp4gy1POcQWhFpxlBw== X-Received: by 2002:a17:902:ba8d:b0:13d:cb44:369c with SMTP id k13-20020a170902ba8d00b0013dcb44369cmr9981136pls.40.1632503211086; Fri, 24 Sep 2021 10:06:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:06:50 -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 00/11] Modular Broadcom irqchip drivers Date: Fri, 24 Sep 2021 10:05:35 -0700 Message-Id: <20210924170546.805663-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-20210924_100653_986693_C81FC391 X-CRM114-Status: GOOD ( 15.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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! Florian Fainelli (11): arch: Export cpu_logical_map to modules genirq: Export irq_to_desc() again to modules genirq: Export irq_set_affinity_locked() irqchip/irq-bcm7038-l1: Switch to IRQCHIP_PLATFORM_DRIVER irqchip/irq-brcmstb-l2: Switch to IRQCHIP_PLATFORM_DRIVER genirq: Export irq_gc_{unmask_enable,mask_disable}_reg of/irq: Export of_irq_count to drivers genirq: Export irq_gc_noop() 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 arch/arm/kernel/setup.c | 1 + arch/arm/mach-bcm/Kconfig | 4 ---- arch/arm64/Kconfig.platforms | 3 --- arch/arm64/kernel/setup.c | 1 + arch/sh/kernel/smp.c | 1 + drivers/irqchip/Kconfig | 12 +++++++++--- drivers/irqchip/irq-bcm7038-l1.c | 6 +++++- drivers/irqchip/irq-bcm7120-l2.c | 11 ++++++----- drivers/irqchip/irq-brcmstb-l2.c | 16 +++++++++------- drivers/of/irq.c | 1 + kernel/irq/generic-chip.c | 3 +++ kernel/irq/irqdesc.c | 2 -- kernel/irq/manage.c | 1 + 13 files changed, 37 insertions(+), 25 deletions(-)