Re: [PATCH] power: reset: syscon-reboot: Use devm_register_sys_off_handler(RESTART)

From: Sebastian Reichel

Date: Sun Nov 08 2026 - 20:32:37 EST



On Mon, 26 Oct 2026 17:20:47 +0800, David Yang wrote:
> The driver registers its restart handler but never unregisters it:
> there is no remove callback and the notifier block lives in the
> devm-allocated context. After unbind the freed notifier stays on the
> handler list and the next reboot oopses on it, observed on a
> Hi3798MV100 board (PC is at 0x0, LR is at notifier_call_chain).
>
> Use the device-managed registration, which unregisters the handler on
> driver unbind; the DT-configured priority is passed through. This
> mirrors the conversion of the syscon-poweroff sibling.
>
> [...]

Applied, thanks!

[1/1] power: reset: syscon-reboot: Use devm_register_sys_off_handler(RESTART)
commit: 808914f0c0141a5e0bd66e13daff7f9d2aa12155

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>