[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aCGjEdNVH3ughITd@smile.fi.intel.com>
Date: Mon, 12 May 2025 10:28:17 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Anup Patel <apatel@...tanamicro.com>
Cc: 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>, Sunil V L <sunilvl@...tanamicro.com>,
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 20/23] mailbox/riscv-sbi-mpxy: Add ACPI support
On Sun, May 11, 2025 at 07:09:36PM +0530, Anup Patel wrote:
> From: Sunil V L <sunilvl@...tanamicro.com>
>
> Add ACPI support for the RISC-V SBI message proxy (MPXY) based
> mailbox driver.
...
> - 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 {
You probably want to have this as
} else if (is_acpi_..._node()) { // you should decide if it is data, device or any type of ACPI node you match with
> + 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)
Hmm... Why do you need this check? What for?
> + acpi_dev_clear_dependencies(ACPI_COMPANION(dev));
> +#endif
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists