[U-Boot] [PATCH v2 08/80] dm: core: Mark device as active before calling uclass probe() methods

Simon Glass sjg at chromium.org
Tue Apr 7 20:40:13 CEST 2015


On 25 March 2015 at 12:21, Simon Glass <sjg at chromium.org> wrote:
> The uclass pre-probe functions may end up calling back into the device in
> some circumstances. This can fail if recursion takes place. Adjust the
> ordering so that we mark the device as active early, then retract this
> later if needed.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  drivers/core/device.c | 8 +++++---
>  test/dm/test-uclass.c | 3 ++-
>  2 files changed, 7 insertions(+), 4 deletions(-)

Applied to u-boot-dm/next.


More information about the U-Boot mailing list