diff options
| author | Simon Glass <[email protected]> | 2026-03-05 19:36:11 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-18 13:17:33 -0600 |
| commit | 3632b5d63c8099c59c936c3653ece5bd04d8f6c7 (patch) | |
| tree | 1d020b8896f4ba336067e9d282807fcd39fe101e /include/linux/byteorder | |
| parent | 714dd2252dacfaabf0a72b31b9b7e22a8d816460 (diff) | |
dm: Remove children when parent is removed by flags
When dm_remove_devices_active() removes devices using specialised flags
like DM_REMOVE_ACTIVE_ALL, a parent device may match (e.g. MMC has
DM_FLAG_OS_PREPARE) while its children do not. This deactivates the
parent but leaves children activated, an inconsistent state.
Later, when uclass_destroy() calls device_remove() with DM_REMOVE_NORMAL
on the already-deactivated parent, it returns early without touching the
children. The subsequent device_unbind() then fails because the children
are still activated.
Fix this by dropping only the DM_REMOVE_ACTIVE_ALL requirement for child
removal when the parent is being removed. This ensures children are
removed along with their parent, while still preserving other flags like
DM_REMOVE_NON_VITAL so that vital devices remain protected.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux/byteorder')
0 files changed, 0 insertions, 0 deletions
