* [PATCH] PCI: aspeed: Switch to irq_domain_create_linear()
@ 2026-07-08 9:58 Jiri Slaby (SUSE)
2026-07-20 13:17 ` Manivannan Sadhasivam
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Slaby (SUSE) @ 2026-07-08 9:58 UTC (permalink / raw)
To: bhelgaas
Cc: linux-kernel, Jiri Slaby (SUSE),
Thomas Gleixner, Jacky Chou, Lorenzo Pieralisi,
Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
Joel Stanley, Andrew Jeffery, linux-aspeed, linux-pci,
linux-arm-kernel
irq_domain_add_linear() is going away as being obsolete now. Switch to
the preferred irq_domain_create_linear(). That differs in the first
parameter: It takes more generic struct fwnode_handle instead of struct
device_node. Therefore, of_fwnode_handle() is added around the
parameter.
Note some of the users can likely use dev->fwnode directly instead of
indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not
guaranteed to be set for all, so this has to be investigated on case to
case basis (by people who can actually test with the HW).
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>
Cc: Jacky Chou <jacky_chou@aspeedtech.com>
---
Cc: Lorenzo Pieralisi <lpieralisi@kernel.org>
Cc: "Krzysztof Wilczyński" <kwilczynski@kernel.org>
Cc: Manivannan Sadhasivam <mani@kernel.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Joel Stanley <joel@jms.id.au>
Cc: Andrew Jeffery <andrew@codeconstruct.com.au>
Cc: linux-aspeed@lists.ozlabs.org
Cc: linux-pci@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
---
drivers/pci/controller/pcie-aspeed.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/pci/controller/pcie-aspeed.c b/drivers/pci/controller/pcie-aspeed.c
index 9aa9e14c6148..74b03a55643f 100644
--- a/drivers/pci/controller/pcie-aspeed.c
+++ b/drivers/pci/controller/pcie-aspeed.c
@@ -725,10 +725,10 @@ static int aspeed_pcie_init_irq_domain(struct aspeed_pcie *pcie)
{
int ret;
- pcie->intx_domain = irq_domain_add_linear(pcie->dev->of_node,
- PCI_NUM_INTX,
- &aspeed_intx_domain_ops,
- pcie);
+ pcie->intx_domain = irq_domain_create_linear(dev_fwnode(pcie->dev),
+ PCI_NUM_INTX,
+ &aspeed_intx_domain_ops,
+ pcie);
if (!pcie->intx_domain) {
ret = dev_err_probe(pcie->dev, -ENOMEM,
"failed to get INTx IRQ domain\n");
--
2.55.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: aspeed: Switch to irq_domain_create_linear()
2026-07-08 9:58 [PATCH] PCI: aspeed: Switch to irq_domain_create_linear() Jiri Slaby (SUSE)
@ 2026-07-20 13:17 ` Manivannan Sadhasivam
0 siblings, 0 replies; 2+ messages in thread
From: Manivannan Sadhasivam @ 2026-07-20 13:17 UTC (permalink / raw)
To: bhelgaas, Jiri Slaby (SUSE)
Cc: linux-kernel, Thomas Gleixner, Jacky Chou, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Joel Stanley,
Andrew Jeffery, linux-aspeed, linux-pci, linux-arm-kernel
On Wed, 08 Jul 2026 11:58:14 +0200, Jiri Slaby (SUSE) wrote:
> irq_domain_add_linear() is going away as being obsolete now. Switch to
> the preferred irq_domain_create_linear(). That differs in the first
> parameter: It takes more generic struct fwnode_handle instead of struct
> device_node. Therefore, of_fwnode_handle() is added around the
> parameter.
>
> Note some of the users can likely use dev->fwnode directly instead of
> indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not
> guaranteed to be set for all, so this has to be investigated on case to
> case basis (by people who can actually test with the HW).
>
> [...]
Applied, thanks!
[1/1] PCI: aspeed: Switch to irq_domain_create_linear()
commit: f944349dcbaeaa9d6e1c8f2f8182f5560ba79581
Best regards,
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-20 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-08 9:58 [PATCH] PCI: aspeed: Switch to irq_domain_create_linear() Jiri Slaby (SUSE)
2026-07-20 13:17 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome