]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:52 +0000 (21:47 +0200)
commit8a8c0797db1542d9157c2ed8dee53e7b530ba0e1
tree9aa5eb01a9df59c090f4f6deb76be174551d1ff1
parent1fcad3c727a5eda43b8ef7a2ba39ad8f434fb198
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