Re: [PATCH 4/6] watchdog: sbsa: Evaluate MediaTek WS0 workaround after IRQ fallback
From: Guenter Roeck
Date: Thu Dec 03 2026 - 20:03:47 EST
On Thu, Dec 03, 2026 at 05:30:07PM +0000, Lee Jones wrote:
> sbsa_gwdt_probe() calls sbsa_gwdt_get_version() and applies the
> MediaTek WS0 race workaround before attempting to request the WS0
> interrupt. If platform_get_irq() or devm_request_irq() fails and the
> driver falls back to single-stage mode (action = 0), neither
> need_ws0_race_workaround nor wdd->min_timeout is updated, leaving
> MediaTek rev 0 hardware without the workaround.
>
> Move sbsa_gwdt_get_version(), max_hw_heartbeat_ms initialisation, and the
> need_ws0_race_workaround check after the IRQ setup block.
>
> Fixes: 48defdf6b083 ("watchdog: sbsa: Adjust keepalive timeout to avoid MediaTek WS0 race condition")
> Closes: https://sashiko.dev/#/bug/linux-01e7e345-bbe4-47e2-a2be-00d65eb15869
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
Applied.
Thanks,
Guenter