[PATCH RFC 08/11] watchdog: sbsa: Handle IRQ probe deferral
From: Lorenzo Pieralisi
Date: Fri Sep 25 2026 - 03:52:24 EST
The SBSA watchdog might be wired up to an interrupt controller whose
device driver has not probed yet at SBSA watchdog driver probe time.
Handle probe deferral in the IRQ mapping code path.
Signed-off-by: Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>
Cc: Guenter Roeck <linux@xxxxxxxxxxxx>
Cc: Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>
---
drivers/watchdog/sbsa_gwdt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c
index e04d42cc7774..f4491409caf5 100644
--- a/drivers/watchdog/sbsa_gwdt.c
+++ b/drivers/watchdog/sbsa_gwdt.c
@@ -352,6 +352,8 @@ static int sbsa_gwdt_probe(struct platform_device *pdev)
if (action) {
irq = platform_get_irq(pdev, 0);
+ if (irq == -EPROBE_DEFER)
+ return dev_err_probe(dev, irq, "failed to get ws0 interrupt\n");
if (irq < 0) {
action = 0;
dev_warn(dev, "unable to get ws0 interrupt.\n");
--
2.54.0