]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: core: Allow the uclass to set up a device's child after binding
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:08 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:56 +0000 (17:09 -0700)
commit081f2fcbd9a95ba10677065359791f8fea3f8c58
treeed8312d3d54e07e659a64f5b59657a147317130f
parent19a25f672c6aa1a9a9b94c0ffbfda3e8246d1a19
dm: core: Allow the uclass to set up a device's child after binding

For buses, after a child is bound, allow the uclass to perform some
processing. This can be used to figure out the address of the child (e.g.
the chip select for SPI slaves) so that it is ready to be probed.

This avoids bus drivers having to repeat the same process, which really
should be done by the uclass, since it is common.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
drivers/core/uclass.c
include/dm/uclass.h
test/dm/bus.c