[U-Boot] [PATCH v3 25/29] dm: Introduce per-child data for devices

Simon Glass sjg at chromium.org
Sat Jul 26 17:14:04 CEST 2014


On 23 July 2014 13:55, Simon Glass <sjg at chromium.org> wrote:
> Some device types can have child devices and want to store information
> about them. For example a USB flash stick attached to a USB host
> controller would likely use this space. The controller can hold
> information about the USB state of each of its children.
>
> The data is stored attached to the child device in the 'parent_priv'
> member. It can be auto-allocated by dm when the child is probed. To
> do this, add a per_child_auto_alloc_size value to the parent driver.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to dm/master.

As discussed we may also introduce per-uclass data for children (based
on the parent bus's uclass). This will be probably be determined by
the USB driver model effort.


More information about the U-Boot mailing list