projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44e6dcd
)
riscv: sifive_u: Fix clock-names property for ethernet node
author
Guenter Roeck
<linux@roeck-us.net>
Fri, 19 Jul 2019 13:40:45 +0000
(06:40 -0700)
committer
Palmer Dabbelt
<palmer@sifive.com>
Tue, 17 Sep 2019 15:42:42 +0000
(08:42 -0700)
The correct property name is clock-names, not clocks-names.
Without this patch, the Ethernet driver fails to instantiate with
the following error.
macb
100900fc
.ethernet: failed to get macb_clk (-2)
macb: probe of
100900fc
.ethernet failed with error -2
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
hw/riscv/sifive_u.c
patch
|
blob
|
history
diff --git
a/hw/riscv/sifive_u.c
b/hw/riscv/sifive_u.c
index 8313f2605eb6d9a2836b77125de0683f5f693b9c..ae5a16e636e01f248f2384d855620dd50ab4fa6f 100644
(file)
--- a/
hw/riscv/sifive_u.c
+++ b/
hw/riscv/sifive_u.c
@@
-215,7
+215,7
@@
static void *create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap,
qemu_fdt_setprop_cells(fdt, nodename, "interrupts", SIFIVE_U_GEM_IRQ);
qemu_fdt_setprop_cells(fdt, nodename, "clocks",
ethclk_phandle, ethclk_phandle, ethclk_phandle);
- qemu_fdt_setprop(fdt, nodename, "clock
s
-names", ethclk_names,
+ qemu_fdt_setprop(fdt, nodename, "clock-names", ethclk_names,
sizeof(ethclk_names));
qemu_fdt_setprop_cells(fdt, nodename, "#address-cells", 1);
qemu_fdt_setprop_cells(fdt, nodename, "#size-cells", 0);