The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 1/2] thermal/drivers/rcar_gen3: Handle -ENXIO from optional IRQ lookup
@ 2026-08-07  9:30 phucduc.bui
  2026-08-07  9:30 ` [PATCH 2/2] thermal/drivers/brcmstb_thermal: Propagate errors " phucduc.bui
  2026-08-07  9:44 ` [PATCH 1/2] thermal/drivers/rcar_gen3: Handle -ENXIO " Geert Uytterhoeven
  0 siblings, 2 replies; 6+ messages in thread
From: phucduc.bui @ 2026-08-07  9:30 UTC (permalink / raw)
  To: Markus Mayer, Broadcom internal kernel review list, rafael,
	Daniel Lezcano, Zhang Rui, Lukasz Luba, Florian Fainelli,
	niklas.soderlund, Geert Uytterhoeven, Magnus Damm
  Cc: linux-pm, linux-renesas-soc, linux-kernel, linux-arm-kernel,
	bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

platform_get_irq_optional() returns -ENXIO when the optional IRQ is not
specified. Treat -ENXIO as a valid absence of an optional IRQ, while
propagating other errors.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
 drivers/thermal/renesas/rcar_gen3_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/renesas/rcar_gen3_thermal.c b/drivers/thermal/renesas/rcar_gen3_thermal.c
index 94804816e9e1..6204fb163ad7 100644
--- a/drivers/thermal/renesas/rcar_gen3_thermal.c
+++ b/drivers/thermal/renesas/rcar_gen3_thermal.c
@@ -491,7 +491,7 @@ static int rcar_gen3_thermal_request_irqs(struct rcar_gen3_thermal_priv *priv,
 
 	for (i = 0; i < 2; i++) {
 		irq = platform_get_irq_optional(pdev, i);
-		if (irq < 0)
+		if (irq < 0 && irq != -ENXIO)
 			return irq;
 
 		irqname = devm_kasprintf(dev, GFP_KERNEL, "%s:ch%d",
-- 
2.43.0


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

end of thread, other threads:[~2026-08-07 11:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07  9:30 [PATCH 1/2] thermal/drivers/rcar_gen3: Handle -ENXIO from optional IRQ lookup phucduc.bui
2026-08-07  9:30 ` [PATCH 2/2] thermal/drivers/brcmstb_thermal: Propagate errors " phucduc.bui
2026-08-07  9:44 ` [PATCH 1/2] thermal/drivers/rcar_gen3: Handle -ENXIO " Geert Uytterhoeven
2026-08-07 10:11   ` Bui Duc Phuc
2026-08-07 10:36     ` Niklas Söderlund
2026-08-07 11:04       ` Bui Duc Phuc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox