diff mbox series

[U-Boot,07/25] dm: firmware: Automatically bind child devices

Message ID 20180821143203.29142-8-lokeshvutla@ti.com
State Changes Requested
Delegated to: Tom Rini
Headers show
Series Initial support Texas Instrument's AM654 Platform | expand

Commit Message

Lokesh Vutla Aug. 21, 2018, 2:31 p.m. UTC
From: Andreas Dannenberg <dannenberg@ti.com>

To support scenarios where a firmware device node has subnodes that
have their own drivers automatically scan the DT and bind those when
the firmware device gets bound.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 drivers/firmware/firmware-uclass.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tom Rini Aug. 24, 2018, 2:11 p.m. UTC | #1
On Tue, Aug 21, 2018 at 08:01:45PM +0530, Lokesh Vutla wrote:

> From: Andreas Dannenberg <dannenberg@ti.com>
> 
> To support scenarios where a firmware device node has subnodes that
> have their own drivers automatically scan the DT and bind those when
> the firmware device gets bound.
> 
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
diff mbox series

Patch

diff --git a/drivers/firmware/firmware-uclass.c b/drivers/firmware/firmware-uclass.c
index d09923595b..3d33b6deba 100644
--- a/drivers/firmware/firmware-uclass.c
+++ b/drivers/firmware/firmware-uclass.c
@@ -7,4 +7,7 @@ 
 UCLASS_DRIVER(firmware) = {
 	.id		= UCLASS_FIRMWARE,
 	.name		= "firmware",
+#if CONFIG_IS_ENABLED(OF_CONTROL)
+	.post_bind	= dm_scan_fdt_dev,
+#endif
 };