]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dm: core: Add a uclass pre_probe() method for devices
authorSimon Glass <sjg@chromium.org>
Thu, 5 Mar 2015 19:25:22 +0000 (12:25 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Apr 2015 01:27:42 +0000 (19:27 -0600)
commit02c07b3741f1b825934b1a6eb8f23530532dc426
treedb9511b8172e15dc4f0ad4a44a0cc05474851cc0
parent02eeb1bbb1749903b157140de5dedebf7e44edcf
dm: core: Add a uclass pre_probe() method for devices

Some uclasses want to set up a device before it is probed. Add a method
for this.

An example is with PCI, where a PCI uclass wants to set up its private
data for later use. This allows the device's uclass() method to make calls
whcih use that data (for example, read PCI memory regions from device
tree, set up bus numbers).

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
drivers/core/uclass.c
include/dm/test.h
include/dm/uclass-internal.h
include/dm/uclass.h
test/dm/core.c
test/dm/test-uclass.c