[U-Boot] [PATCH v3 12/26] dm: core: Allow uclasses to specify private data for a device's children

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Jan 26 03:00:28 CET 2015


On Sun, 25 Jan 2015 08:27:06 -0700
Simon Glass <sjg at chromium.org> wrote:

> In many cases the per-child private data for a device's children is defined
> by the uclass rather than the individual driver. For example, a SPI bus
> needs to store information about each of its children, but all SPI drivers
> store the same information. It makes sense to allow the uclass to define
> this data.
> 
> If the driver provides a size value for its per-child private data, then use
> it. Failng that, fall back to that provided by the uclass.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> Changes in v3:
> - Fix typo in commit subject
> 
> Changes in v2: None



Reviewed-by: Masahiro Yamada <yamada.m at jp.panasonic.com>



More information about the U-Boot mailing list