diff options
author | Simon Glass | 2015-01-25 08:27:03 -0700 |
---|---|---|
committer | Simon Glass | 2015-01-29 17:09:55 -0700 |
commit | 0118ce79577f9b0881f99a6e4f8a79cd5014cb87 (patch) | |
tree | 4261f26aa29d28709ab619036589c68ecc2f7d03 /include/dm | |
parent | ba8da9dc43ac8ae3351345df12dc7f9d1cd07ae0 (diff) |
dm: core: Add a post_bind method for parents
Allow parent drivers to be called when a new child is bound to them. This
allows a bus to set up information it needs for that child.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index 096d84b7b6f..50f1b4f5087 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -132,6 +132,7 @@ struct udevice_id { * @remove: Called to remove a device, i.e. de-activate it * @unbind: Called to unbind a device from its driver * @ofdata_to_platdata: Called before probe to decode device tree data + * @child_post_bind: Called after a new child has been bound * @child_pre_probe: Called before a child device is probed. The device has * memory allocated but it has not yet been probed. * @child_post_remove: Called after a child device is removed. The device @@ -168,6 +169,7 @@ struct driver { int (*remove)(struct udevice *dev); int (*unbind)(struct udevice *dev); int (*ofdata_to_platdata)(struct udevice *dev); + int (*child_post_bind)(struct udevice *dev); int (*child_pre_probe)(struct udevice *dev); int (*child_post_remove)(struct udevice *dev); int priv_auto_alloc_size; |