
26 Jan
2015
26 Jan
'15
9:12 p.m.
On 25 January 2015 at 08:27, Simon Glass sjg@chromium.org wrote:
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
Changes in v3:
- Change variable name from parent_drv to uc_drv
Changes in v2: None
drivers/core/uclass.c | 21 ++++++++++++++++----- include/dm/uclass.h | 2 ++ test/dm/bus.c | 26 ++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 5 deletions(-)
Applied to -u-boot-dm