From: Tom Rini Date: Thu, 19 Mar 2026 00:36:50 +0000 (-0600) Subject: Merge patch series "bootm: Clean up arch-specific, pre-OS clean-up" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb00c710508d09b2a3b9aca75dd18280f1304703;p=thirdparty%2Fu-boot.git Merge patch series "bootm: Clean up arch-specific, pre-OS clean-up" Simon Glass says: Each arch does something slightly different before booting the OS. Some archs even do different things depending on the CPU type. It is quite hard to know what actually happens in the final milliseconds before the OS boot. This series attempts to start cleaning up U-Boot in this area. The basic intent is to create a new bootm_final() function which can be called by all archs. It provides some flags for a couple of necessary variations but otherwise it is generic. All architectures are converted over to use this new function. board_quiesce_devices() is moved into bootm_final() so that all archs benefit from it. This series fixes a bug in device_remove() is fixed where removing a parent with specialised flags (e.g. DM_REMOVE_ACTIVE_ALL) could leave children activated, since they do not match the flags. This fixes is needed to avoid bootm_final() causing test failures on sandbox. Future work could take this a little further: - Convert EFI loader to use the same function - Improve comments for cleanup_before_linux() across architectures - Support fake-run tracing on all archs Link: https://lore.kernel.org/r/20260306023638.2678886-1-sjg@chromium.org --- eb00c710508d09b2a3b9aca75dd18280f1304703