[U-Boot] [PATCH v3 14/26] dm: core: Allow the uclass to set up a device's child after binding

Simon Glass sjg at chromium.org
Mon Jan 26 21:12:27 CET 2015


On 25 January 2015 at 08:27, Simon Glass <sjg at 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 at chromium.org>
> Reviewed-by: Masahiro Yamada <yamada.m at 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


More information about the U-Boot mailing list