Re: [U-Boot] [PATCH v2 22/26] dm: core: Ignore disabled devices when binding

2015-01-23 Thread Masahiro YAMADA
2015-01-20 12:12 GMT+09:00 Simon Glass s...@chromium.org:
 We don't want to bind devices which should never be used.

 Signed-off-by: Simon Glass s...@chromium.org


Sounds a good idea!

Reviewed-by: Masahiro Yamada yamad...@jp.panasonic.com





-- 
Best Regards
Masahiro Yamada
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 22/26] dm: core: Ignore disabled devices when binding

2015-01-19 Thread Simon Glass
We don't want to bind devices which should never be used.

Signed-off-by: Simon Glass s...@chromium.org
---

Changes in v2:
- Add patches to tidy up cros_ec using new I2C/SPI features

 drivers/core/root.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/core/root.c b/drivers/core/root.c
index a5b0a61..73e3c72 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -9,6 +9,7 @@
 
 #include common.h
 #include errno.h
+#include fdtdec.h
 #include malloc.h
 #include libfdt.h
 #include dm/device.h
@@ -92,6 +93,10 @@ int dm_scan_fdt_node(struct udevice *parent, const void 
*blob, int offset,
if (pre_reloc_only 
!fdt_getprop(blob, offset, u-boot,dm-pre-reloc, NULL))
continue;
+   if (!fdtdec_get_is_enabled(blob, offset)) {
+   dm_dbg(   - ignoring disabled device\n);
+   continue;
+   }
err = lists_bind_fdt(parent, blob, offset, NULL);
if (err  !ret)
ret = err;
-- 
2.2.0.rc0.207.ga3a616c

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot