u-boot/drivers/core
Simon Glass 02eeb1bbb1 dm: core: Mark device as active before calling its probe() method
At present the device is not active when the probe() method is called. But
some probe() methods want to set up the device and this can involve
accessing it through normal methods. For example a PCI bus may wish to
set up its PCI parameters using calls to pci_hose_write_config_dword() and
similar.

At present this does not work because every such call within the probe()
method sees that the device is not active and attempts to probe it.

Already we mark the device as probed before calling the uclass post_probe()
method. This is a subtle change but I believe the new approach is better.
Since the scope of the change is only the probe() method and all its callees
it should still be within the control of the board author.

Signed-off-by: Simon Glass <sjg@chromium.org>
2015-04-16 19:27:42 -06:00
..
device-remove.c dm: core: Allow uclasses to specify private data for a device's children 2015-01-29 17:09:55 -07:00
device.c dm: core: Mark device as active before calling its probe() method 2015-04-16 19:27:42 -06:00
Kconfig kconfig: remove unneeded dependency on !SPL_BUILD 2015-02-24 17:06:27 -05:00
lists.c dm: core: remove unnecessary return condition in uclass lookup 2014-11-22 10:16:49 +01:00
Makefile dm: Allow device removal features to be dropped 2014-11-21 08:13:02 +01:00
root.c dm: Add support for all targets which requires MANUAL_RELOC 2015-02-12 15:17:29 -07:00
simple-bus.c dm: core: Add support for simple-bus 2014-10-22 10:36:56 -06:00
uclass.c dm: core: Allow uclass to set up a device's child before it is probed 2015-01-29 17:09:56 -07:00
util.c dm: Add base driver model support 2014-03-04 12:15:29 -05:00