Files
openwrt/target
Jonas Jelonek ebd0337363 realtek: apply RTL931x watchdog quirk during early setup
The conversion to generic machine initialization moved the DT-dependent
watchdog quirk from device_tree_init() to an arch_initcall. This delays
hardware-assisted watchdog setup until after architecture initialization,
whereas affected boards require it early to avoid a watchdog reset.

Rename the quirk for RTL931x and register it in the SoC-specific
apply_quirks hook. Pass the flat DT to that hook and use libfdt to find
the watchdog node, since the live tree is not available at this stage.
The SoC configuration now provides the family restriction.

Validate the DT header before realtek_prom_init() consumes the flat tree
and refresh the hunk offsets in the following board patch.

Fixes: 7cc31af7bd ("realtek: convert to generic machine initialization")
Link: https://github.com/openwrt/openwrt/pull/26832
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-11-20 20:43:15 +01:00
..
…