All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw: ppc: sam460ex: Disable Ethernet devicetree nodes
@ 2021-08-16  2:59 Guenter Roeck
  2021-08-16  5:41 ` David Gibson
  0 siblings, 1 reply; 17+ messages in thread
From: Guenter Roeck @ 2021-08-16  2:59 UTC (permalink / raw)
  To: BALATON Zoltan
  Cc: qemu-devel, qemu-ppc, Greg Kurz, Guenter Roeck, David Gibson

IBM EMAC Ethernet controllers are not emulated by qemu. If they are
enabled in devicetree files, they are instantiated in Linux but
obviously won't work. Disable associated devicetree nodes to prevent
unpredictable behavior.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 hw/ppc/sam460ex.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hw/ppc/sam460ex.c b/hw/ppc/sam460ex.c
index 0737234d66..feb356e625 100644
--- a/hw/ppc/sam460ex.c
+++ b/hw/ppc/sam460ex.c
@@ -194,6 +194,14 @@ static int sam460ex_load_device_tree(hwaddr addr,
         _FDT(fdt_nop_node(fdt, offset));
     }
 
+    /* Ethernet interfaces are not emulated */
+    offset = fdt_node_offset_by_compatible(fdt, -1, "ibm,emac-460ex");
+    while (offset >= 0) {
+        _FDT(fdt_setprop_string(fdt, offset, "status", "disabled"));
+        offset = fdt_node_offset_by_compatible(fdt, offset, "ibm,emac-460ex");
+    }
+
+
     /* set serial port clocks */
     offset = fdt_node_offset_by_compatible(fdt, -1, "ns16550");
     while (offset >= 0) {
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-08-17  9:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16  2:59 [PATCH] hw: ppc: sam460ex: Disable Ethernet devicetree nodes Guenter Roeck
2021-08-16  5:41 ` David Gibson
2021-08-16 10:11   ` Philippe Mathieu-Daudé
2021-08-16 15:13     ` Guenter Roeck
2021-08-16 10:21   ` BALATON Zoltan
2021-08-17  3:06     ` David Gibson
2021-08-17  9:24       ` BALATON Zoltan
2021-08-17  9:42         ` Peter Maydell
2021-08-16 10:26   ` Peter Maydell
2021-08-16 10:58     ` Philippe Mathieu-Daudé
2021-08-16 11:58       ` BALATON Zoltan
2021-08-17  3:09         ` David Gibson
2021-08-16 13:59     ` Guenter Roeck
2021-08-16 14:03       ` Peter Maydell
2021-08-16 14:11         ` Guenter Roeck
2021-08-16 14:19           ` Peter Maydell
2021-08-16 14:57             ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.