[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aCG0d3Lh9KwS5a9N@sunil-laptop>
Date: Mon, 12 May 2025 14:12:31 +0530
From: Sunil V L <sunilvl@...tanamicro.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Anup Patel <apatel@...tanamicro.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Jassi Brar <jassisinghbrar@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Uwe Kleine-König <ukleinek@...nel.org>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Len Brown <lenb@...nel.org>,
Rahul Pathak <rpathak@...tanamicro.com>,
Leyfoon Tan <leyfoon.tan@...rfivetech.com>,
Atish Patra <atish.patra@...ux.dev>,
Andrew Jones <ajones@...tanamicro.com>,
Samuel Holland <samuel.holland@...ive.com>,
Anup Patel <anup@...infault.org>, linux-clk@...r.kernel.org,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 21/23] irqchip/riscv-rpmi-sysmsi: Add ACPI support
On Mon, May 12, 2025 at 10:34:14AM +0300, Andy Shevchenko wrote:
> On Sun, May 11, 2025 at 07:09:37PM +0530, Anup Patel wrote:
> >
> > Add ACPI support for the RISC-V RPMI system MSI based irqchip driver.
>
> ...
>
> struct fwnode_handle *fwnode;
> ...
> fwnode = dev_fwnode(dev);
>
> > + if (is_acpi_node(dev_fwnode(dev))) {
> > + u32 nr_irqs;
> > +
> > + rc = riscv_acpi_get_gsi_info(dev_fwnode(dev), &priv->gsi_base, &id,
> > + &nr_irqs, NULL);
>
> ...(fwnode, ...)
>
> ...and so on...
>
Sure.
> > + if (rc) {
> > + dev_err(dev, "failed to find GSI mapping\n");
> > + return rc;
> > + }
> > +
> > + /* Update with actual GSI range */
> > + if (nr_irqs != priv->nr_irqs)
> > + riscv_acpi_update_gsi_range(priv->gsi_base, priv->nr_irqs);
> > + }
>
> > - if (is_of_node(dev_fwnode(dev)))
> > + if (is_of_node(dev_fwnode(dev))) {
> > of_msi_configure(dev, to_of_node(dev_fwnode(dev)));
> > + } else {
>
> } else if (is_acpi_..._node(...)) {
>
Okay.
> > + msi_domain = irq_find_matching_fwnode(imsic_acpi_get_fwnode(dev),
> > + DOMAIN_BUS_PLATFORM_MSI);
> > + dev_set_msi_domain(dev, msi_domain);
> > + }
>
> ...
>
> > +#ifdef CONFIG_ACPI
> > + if (!acpi_disabled)
>
> Why?
>
Same code as in the other patch. I will update this in the next version
in case any change required.
Thanks,
Sunil
Powered by blists - more mailing lists