linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -resend] edac: Use dev_fwnode()
@ 2025-07-23  6:26 Jiri Slaby (SUSE)
  2025-07-29 11:52 ` Dinh Nguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jiri Slaby (SUSE) @ 2025-07-23  6:26 UTC (permalink / raw)
  To: bp
  Cc: linux-kernel, tglx, Jiri Slaby (SUSE), Dinh Nguyen, Tony Luck,
	James Morse, Mauro Carvalho Chehab, Robert Richter, linux-edac

irq_domain_create_simple() takes fwnode as the first argument. It can be
extracted from the struct device using dev_fwnode() helper instead of
using of_node with of_fwnode_handle().

So use the dev_fwnode() helper.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Robert Richter <rric@kernel.org>
Link: https://lore.kernel.org/all/4bc0e1ca-a523-424a-8759-59e353317fba@kernel.org/

---
Cc: linux-edac@vger.kernel.org
---
 drivers/edac/altera_edac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
index cae52c654a15..cfd17a8e5865 100644
--- a/drivers/edac/altera_edac.c
+++ b/drivers/edac/altera_edac.c
@@ -2131,8 +2131,8 @@ static int altr_edac_a10_probe(struct platform_device *pdev)
 	edac->irq_chip.name = pdev->dev.of_node->name;
 	edac->irq_chip.irq_mask = a10_eccmgr_irq_mask;
 	edac->irq_chip.irq_unmask = a10_eccmgr_irq_unmask;
-	edac->domain = irq_domain_create_linear(of_fwnode_handle(pdev->dev.of_node),
-						64, &a10_eccmgr_ic_ops, edac);
+	edac->domain = irq_domain_create_linear(dev_fwnode(&pdev->dev), 64, &a10_eccmgr_ic_ops,
+						edac);
 	if (!edac->domain) {
 		dev_err(&pdev->dev, "Error adding IRQ domain\n");
 		return -ENOMEM;
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -resend] edac: Use dev_fwnode()
  2025-07-23  6:26 [PATCH -resend] edac: Use dev_fwnode() Jiri Slaby (SUSE)
@ 2025-07-29 11:52 ` Dinh Nguyen
  2025-08-19 16:24 ` Yazen Ghannam
  2025-08-20 16:24 ` Borislav Petkov
  2 siblings, 0 replies; 4+ messages in thread
From: Dinh Nguyen @ 2025-07-29 11:52 UTC (permalink / raw)
  To: Jiri Slaby (SUSE), bp
  Cc: linux-kernel, tglx, Tony Luck, James Morse, Mauro Carvalho Chehab,
	Robert Richter, linux-edac

On 7/23/25 01:26, Jiri Slaby (SUSE) wrote:
> irq_domain_create_simple() takes fwnode as the first argument. It can be
> extracted from the struct device using dev_fwnode() helper instead of
> using of_node with of_fwnode_handle().
> 
> So use the dev_fwnode() helper.
> 
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Dinh Nguyen <dinguyen@kernel.org>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: James Morse <james.morse@arm.com>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Robert Richter <rric@kernel.org>
> Link: https://lore.kernel.org/all/4bc0e1ca-a523-424a-8759-59e353317fba@kernel.org/
> 
> ---
> Cc: linux-edac@vger.kernel.org
> ---
>   drivers/edac/altera_edac.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 

Acked-by: Dinh Nguyen <dinguyen@kernel.org>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -resend] edac: Use dev_fwnode()
  2025-07-23  6:26 [PATCH -resend] edac: Use dev_fwnode() Jiri Slaby (SUSE)
  2025-07-29 11:52 ` Dinh Nguyen
@ 2025-08-19 16:24 ` Yazen Ghannam
  2025-08-20 16:24 ` Borislav Petkov
  2 siblings, 0 replies; 4+ messages in thread
From: Yazen Ghannam @ 2025-08-19 16:24 UTC (permalink / raw)
  To: Jiri Slaby (SUSE)
  Cc: bp, linux-kernel, tglx, Dinh Nguyen, Tony Luck, James Morse,
	Mauro Carvalho Chehab, Robert Richter, linux-edac

On Wed, Jul 23, 2025 at 08:26:31AM +0200, Jiri Slaby (SUSE) wrote:
> irq_domain_create_simple() takes fwnode as the first argument. It can be
> extracted from the struct device using dev_fwnode() helper instead of
> using of_node with of_fwnode_handle().
> 
> So use the dev_fwnode() helper.
> 
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Dinh Nguyen <dinguyen@kernel.org>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: James Morse <james.morse@arm.com>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Robert Richter <rric@kernel.org>

Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>

Thanks,
Yazen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -resend] edac: Use dev_fwnode()
  2025-07-23  6:26 [PATCH -resend] edac: Use dev_fwnode() Jiri Slaby (SUSE)
  2025-07-29 11:52 ` Dinh Nguyen
  2025-08-19 16:24 ` Yazen Ghannam
@ 2025-08-20 16:24 ` Borislav Petkov
  2 siblings, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2025-08-20 16:24 UTC (permalink / raw)
  To: Jiri Slaby (SUSE)
  Cc: linux-kernel, tglx, Dinh Nguyen, Tony Luck, James Morse,
	Mauro Carvalho Chehab, Robert Richter, linux-edac

On Wed, Jul 23, 2025 at 08:26:31AM +0200, Jiri Slaby (SUSE) wrote:
> irq_domain_create_simple() takes fwnode as the first argument. It can be
> extracted from the struct device using dev_fwnode() helper instead of
> using of_node with of_fwnode_handle().
> 
> So use the dev_fwnode() helper.
> 
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Dinh Nguyen <dinguyen@kernel.org>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: James Morse <james.morse@arm.com>
> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
> Cc: Robert Richter <rric@kernel.org>
> Link: https://lore.kernel.org/all/4bc0e1ca-a523-424a-8759-59e353317fba@kernel.org/
> 
> ---
> Cc: linux-edac@vger.kernel.org
> ---
>  drivers/edac/altera_edac.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
> index cae52c654a15..cfd17a8e5865 100644
> --- a/drivers/edac/altera_edac.c
> +++ b/drivers/edac/altera_edac.c
> @@ -2131,8 +2131,8 @@ static int altr_edac_a10_probe(struct platform_device *pdev)
>  	edac->irq_chip.name = pdev->dev.of_node->name;
>  	edac->irq_chip.irq_mask = a10_eccmgr_irq_mask;
>  	edac->irq_chip.irq_unmask = a10_eccmgr_irq_unmask;
> -	edac->domain = irq_domain_create_linear(of_fwnode_handle(pdev->dev.of_node),
> -						64, &a10_eccmgr_ic_ops, edac);
> +	edac->domain = irq_domain_create_linear(dev_fwnode(&pdev->dev), 64, &a10_eccmgr_ic_ops,
> +						edac);
>  	if (!edac->domain) {
>  		dev_err(&pdev->dev, "Error adding IRQ domain\n");
>  		return -ENOMEM;
> -- 

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-20 16:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-23  6:26 [PATCH -resend] edac: Use dev_fwnode() Jiri Slaby (SUSE)
2025-07-29 11:52 ` Dinh Nguyen
2025-08-19 16:24 ` Yazen Ghannam
2025-08-20 16:24 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).