Skip to contentSkip to conversation

simple-bus: enable suport for of-platdata

PATCH New Kever Yang 2 participants 5 messages Jan 18, 2017 – Feb 8, 2017

lore
Share & tools
lore

Kever Yang

author
#0 lore raw

PATCH 1/1 simple-bus: enable suport for of-platdata

Just do nothing in post_bind if of-platdata enabled, for there is no dm_scan_fdt_dev().

---

 drivers/core/simple-bus.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/core/simple-bus.c +4 -0
index 5c955da..9b79825 100644
@@ -27,6 +27,9 @@ fdt_addr_t simple_bus_translate(struct udevice *dev, fdt_addr_t addr)
 
 static int simple_bus_post_bind(struct udevice *dev)
 {
+#if CONFIG_IS_ENABLED(OF_PLATDATA)
+	return 0;
+#else
 	u32 cell[3];
 	int ret;
 
@@ -41,6 +44,7 @@ static int simple_bus_post_bind(struct udevice *dev)
 	}
 
 	return dm_scan_fdt_dev(dev);
+#endif
 }
 
 UCLASS_DRIVER(simple_bus) = {
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 1/1 simple-bus: enable suport for of-platdata

Hi Simon,

Found 1 typo on the subject, 'suport' should be 'support',
do I need to send a new patch or you can correct it when you apply?

Thanks,
- Kever

Quoted 13 lines · Simon Glass
Quoted 8 lines · Kever Yang

Just do nothing in post_bind if of-platdata enabled, for there is no dm_scan_fdt_dev().

---

  drivers/core/simple-bus.c | 4 ++++
  1 file changed, 4 insertions(+)
#3 lore raw

PATCH 1/1 simple-bus: enable suport for of-platdata

Hi Kever,

Quoted 5 lines · Kever Yang

Hi Simon,

Found 1 typo on the subject, 'suport' should be 'support',
do I need to send a new patch or you can correct it when you apply?

I can correct it when I apply, should be soon.

- Simon

Quoted 23 lines

Thanks,
- Kever

Quoted 16 lines · Simon Glass
Quoted 9 lines · Kever Yang

Just do nothing in post_bind if of-platdata enabled, for there is no dm_scan_fdt_dev().

---

  drivers/core/simple-bus.c | 4 ++++
  1 file changed, 4 insertions(+)
#4 lore raw

PATCH 1/1 simple-bus: enable suport for of-platdata

Quoted 4 lines · Simon Glass

Hi Kever,

Quoted 1 line · Kever Yang
Quoted 32 lines
Quoted 4 lines

Hi Simon,

Found 1 typo on the subject, 'suport' should be 'support',
do I need to send a new patch or you can correct it when you apply?

I can correct it when I apply, should be soon.

- Simon

Quoted 23 lines

Thanks,
- Kever

Quoted 16 lines · Simon Glass
Quoted 9 lines · Kever Yang

Just do nothing in post_bind if of-platdata enabled, for there is no dm_scan_fdt_dev().

---

  drivers/core/simple-bus.c | 4 ++++
  1 file changed, 4 insertions(+)

Corrected and

Applied to u-boot-dm, thanks!