From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBD8F606A31A for ; Tue, 1 Dec 2026 15:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ev2M1hhW; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=adtFZv1U DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=787jwHELXNdWhuaoZiZIPiLFMAnt0zeKTwJy855ynYI=; b=ev2M1hhWWB9nMswXuRbOBQF+73 OGmXF9X8Ud+EA/e5vCeUiyMe7XRjmWisPgoZHGwQ8Q1xD0aFNpFIjZYOGpOJDhiI92qgdiv+6xwfu h2QD1R861AEx/FehsAsrddpV+iKqzUlP6RHW8QsNPcg0hkJbg3VzkQhzjF8h15nwtll8OuZf8eIMW Jy3/3D5gjwHyyAs7Zg7FCC6q5O2i+tvi2sbsV8tDfgndAXSNv51YeeDRPC8VbW03tOZ9AqVdwLsuR lVoAXpWPm5XFZs4uVXDDMGGrSl3Vj901K5RCJmCaTTg2/dssczVS9rV0OzUjhccerNKZqB0NE2w5E CIUZxVBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYPsk-00000008awQ-04DT; Tue, 01 Dec 2026 15:35:02 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYPsg-00000008ars-2Bxn for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 15:35:00 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 12BEA405FA; Tue, 1 Dec 2026 15:34:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6EAB1F000C1; Tue, 1 Dec 2026 15:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796139297; bh=787jwHELXNdWhuaoZiZIPiLFMAnt0zeKTwJy855ynYI=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=adtFZv1UX9Mjx333rvldFWeN/jkY2Q+z0qkP3KT+hIIpVw6vwfHArJ2kI2RWgN6AX QciMHH7ifCdq47EjU+ToF+A7n2dJ1NmINOzjT4AUgj+k6iv0SbGAfB4habbBrELEk3 tCJ6hAf4UHnLFa3N67B85461SsRL9Qi0oGL0ZuM11tKTObGX+ch9SSrkA9f/FsObZN +NWmJtBB9P9aafFt2IdDVDOIJINyPRqDkSA7p0PaFzryzvjxHPZqb8+bqg8YeANyCZ aAtfwsDBoyQVcJxYpychDqSZkbU5pMCAkPWiMrcNXjhCu1krj5PMSRenO+HrIuxIKR xv+T2SZUpqgcg== From: Thomas Gleixner To: yogo.0917.sabu@gmail.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Radu Rendec , Ulf Hansson , Daniel Lezcano , Adrian Hunter , Jonathan Corbet , Shuah Khan , Randy Dunlap , Russell King , Arnd Bergmann , Alexandre Belloni , Linus Walleij , Drew Fustini , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-mmc@vger.kernel.org, linux-doc@vger.kernel.org, soc@lists.linux.dev Subject: Re: [PATCH RFC 2/6] irqchip: add the SiRF AT550 interrupt controller In-Reply-To: <20261117-at550-rfc-v1-v1-2-5879573cb825@gmail.com> References: <20261117-at550-rfc-v1-v1-0-5879573cb825@gmail.com> <20261117-at550-rfc-v1-v1-2-5879573cb825@gmail.com> Date: Tue, 01 Dec 2026 16:34:53 +0100 Message-ID: <87se0hovz6.ffs@fw13> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Nov 17 2026 at 22:06, yy-Local-LLM via wrote: > From: yy-Local-LLM That's not a valid name, unless you are an LLM... See Documentation/process/ > Register the root controller through IRQCHIP_DECLARE and a linear > domain. Validate the chip ID before writes, mask both banks during setup > and route sources to IRQ. Keep dispatch bounded and leave the DSP mask > registers alone. The register operations derive from the 6.12.60 > YPL514si bring-up. The device owner has now booted the 7.4-rc3 candidate > through JWM on this upstream initialization path. This is bogus change log as it describes what the patch is doing and nobody cares about the 6.12.60 bring-up and who booted a random kernel with this patch applied. > SIS 190 ETHERNET DRIVER > M: Francois Romieu > diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig > index 136bab41f..abf704110 100644 > --- a/drivers/irqchip/Kconfig > +++ b/drivers/irqchip/Kconfig > @@ -852,4 +852,9 @@ config IRQCHIP_XILINX_SMMU_CSR > ZynqMP-class platforms where a vendor CSR block mediates SMMU > interrupts. > > +config AT550_IRQ > + bool > + depends on ARM > + select IRQ_DOMAIN The entries in this file are alphabetically ordered. > endmenu > diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile > index 16a5fd126..0aa36c7b8 100644 > --- a/drivers/irqchip/Makefile > +++ b/drivers/irqchip/Makefile > @@ -136,3 +136,5 @@ obj-$(CONFIG_MCHP_EIC) += irq-mchp-eic.o > obj-$(CONFIG_SOPHGO_SG2042_MSI) += irq-sg2042-msi.o > obj-$(CONFIG_SUNPLUS_SP7021_INTC) += irq-sp7021-intc.o > obj-$(CONFIG_IRQCHIP_XILINX_SMMU_CSR) += irq-xilinx-smmu-csr.o > + > +obj-$(CONFIG_AT550_IRQ) += irq-at550.o Ditto. > +static void __iomem *at550_intc; > +static struct irq_domain *at550_domain; > + > +static void at550_irq_mask(struct irq_data *data) > +{ > + void __iomem *reg = at550_intc + AT550_MASK + (data->hwirq / 32) * 4; > + > + writel(readl(reg) & ~BIT(data->hwirq % 32), reg); > +} > + > +static void at550_irq_unmask(struct irq_data *data) > +{ > + void __iomem *reg = at550_intc + AT550_MASK + (data->hwirq / 32) * 4; > + > + writel(readl(reg) | BIT(data->hwirq % 32), reg); > +} > + > +static struct irq_chip at550_chip = { > + .name = "at550-intc", > + .irq_mask = at550_irq_mask, > + .irq_unmask = at550_irq_unmask, Tabular layout as documented in: https://docs.kernel.org/process/maintainer-tip.html > +static void __exception_irq_entry at550_handle_irq(struct pt_regs *regs) > +{ > + unsigned int count, hwirq; > + > + for (count = 0; count < AT550_IRQ_COUNT; count++) { for (unsigned int count = 0; ... > + hwirq = readl(at550_intc + AT550_IRQ_ID) & 0xff; unsigned int hwirq = So that variables are declared in the scope in which they are used. > + if (hwirq == 0xff) > + return; > + if (hwirq >= AT550_IRQ_COUNT) { > + pr_err_ratelimited("at550-intc: invalid source %u\n", hwirq); > + return; > + } > + if (generic_handle_domain_irq(at550_domain, hwirq)) > + return; > + } > +} > + > +static int __init at550_irq_init(struct device_node *node, > + struct device_node *parent) > +{ > + int ret; > + > + if (parent || at550_intc) > + return -EINVAL; > + at550_intc = of_iomap(node, 0); > + if (!at550_intc) > + return -ENOMEM; > + if ((readl(at550_intc + AT550_CHIP_ID) & 0xffff) != 0x1230) { No magic numbers. Make that 0x1230 a proper define. > + ret = -ENODEV; > + goto unmap; > + } > + /* A set mask bit enables a source; clear level bits route it to IRQ. */ Clearly your newline key is broken. Please structure the code so it becomes readable. Thanks, tglx