On Tue, 22 Apr 2025 09:56:12 +0200, Ahmad Fatoum wrote: > We currently do differentiate between warm and cold reset, but > restart_machine has no flag to choose between them and instead users > need to iterate over all registered handlers and choose a suitable one > and then call hat handler's action. > > In preparation for making warm/cold reset and any other flags we may > require a feature an argument to the driver action, change all > poweroff_machine and restart_machine calls to take a flags parameter. > > [...]
Applied, thanks! [1/4] restart: give poweroff_machine and restart_machine a flag parameter https://git.pengutronix.de/cgit/barebox/commit/?id=14e928800a18 (link may not be stable) [2/4] restart: give all restart_handler::restart callbacks a flags parameter https://git.pengutronix.de/cgit/barebox/commit/?id=a375e0c5e4e7 (link may not be stable) [3/4] poweroff: give all poweroff_handler::poweroff callbacks a flags parameter https://git.pengutronix.de/cgit/barebox/commit/?id=3fd1ec8bbefd (link may not be stable) [4/4] restart: make warm reboot a callback argument https://git.pengutronix.de/cgit/barebox/commit/?id=fa8e10d7617b (link may not be stable) Best regards, -- Sascha Hauer <s.ha...@pengutronix.de>