]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Mark device as active before calling uclass probe() methods
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:21:56 +0000 (12:21 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:19 +0000 (11:11 -0600)
commit206d4d2b4b30889678bb6b064002013a427b1501
tree9683b0ddd1824d6f21a269fd05099fe934242321
parent39de843352d8c655f23ecff460d5e74101780b7e
dm: core: Mark device as active before calling uclass probe() methods

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@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/core/device.c
test/dm/test-uclass.c