[PATCH v5 5/9] dm: core: Remove children before advising uclass

Simon Glass sjg at chromium.org
Thu Feb 4 02:54:00 CET 2021


At present the uclass pre-remove method is called before the children are
removed. But the children may refused to be removed, in whch case the
uclass is in a tricky situation. At present we handle this by calling
the uclass' post_probe() method. But it seems better to avoid doing
anything with the uclass in this case.

Switch the ordering so that we make sure the children can be removed
before advising the uclass.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 drivers/core/device-remove.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list