]> git.kernelconcepts.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:22 +0000 (21:47 +0200)
commita032cce68d4970d363afcbe7e65b0effea87ef46
treef7273cd077c12ce4e175cf39a0b96f097afeb85c
parent12045b881222eec753273d215f627bc39e590535
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