Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1i7xvi-0007Oh-7d for mharc-qemu-riscv@gnu.org; Wed, 11 Sep 2019 04:24:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56915) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7xvd-0007Iv-UO for qemu-riscv@nongnu.org; Wed, 11 Sep 2019 04:24:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7xvc-0006NN-QU for qemu-riscv@nongnu.org; Wed, 11 Sep 2019 04:24:41 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7xvc-0006Mx-KW for qemu-riscv@nongnu.org; Wed, 11 Sep 2019 04:24:40 -0400 Received: by mail-wm1-f68.google.com with SMTP id n10so2384464wmj.0 for ; Wed, 11 Sep 2019 01:24:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:cc:from:to; bh=0aUWUGKUdj74mYp5bqvI3cmVOmwPFCZNAshHhaO5kdk=; b=SSi+hxbeTTKHf+4ehtoAAWnAOnjJPC3h6U+1/S9sX0uq0m3fSZeqe06tE9312S2IqY Op5gA4NwZONfSDvrPIBHUvcxoDzv8orvYydTNlUFrVobkg1Z3Fjfztf5OSyh4hJXWMlx UqjPnJ14ShCqVfHnRq7L001/g7jDydXCtziwTb98T3sk1wRjUC9hzNkUBn8IFSdL+pNv SI1DpBnMnxqWZsipzaak1YI2TpFLU9Ydkq1tb4HwqoKMwSrqTdYHg1S71sK/FFlbyBgJ f6a6tlP5xjqrGpUinIOsOadNay6FNWCPyj7bfVk3PjnruItBTZ2pzSt0j0tg4WhvEMxT 6B9A== X-Gm-Message-State: APjAAAW8kCzxs7xdt4Oo4r4Rzj6bPIWM0umc2PY6sRigUNbSH0H7rpBm 6OJ5IBNXKFmmOAtWcDGSWDuyoN8Kezu6kw== X-Google-Smtp-Source: APXvYqx+nbYOtdLAf0MkPKTDIQRL0M+eY9VdcxkiYRj4VuQ4iCxihXxccFXiefMUq7Zx3XNJiiBKHA== X-Received: by 2002:a1c:a942:: with SMTP id s63mr2818590wme.152.1568190279180; Wed, 11 Sep 2019 01:24:39 -0700 (PDT) Received: from localhost ([148.69.85.38]) by smtp.gmail.com with ESMTPSA id f18sm142325wrv.38.2019.09.11.01.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2019 01:24:38 -0700 (PDT) Date: Tue, 10 Sep 2019 12:04:29 -0700 Message-Id: <20190910190513.21160-4-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190910190513.21160-1-palmer@sifive.com> References: <20190910190513.21160-1-palmer@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: qemu-riscv@nongnu.org, qemu-devel@nongnu.org, Guenter Roeck , Alistair Francis , Palmer Dabbelt From: Palmer Dabbelt To: Peter Maydell X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.128.68 Subject: [Qemu-riscv] [PULL 03/47] riscv: sifive_u: Fix clock-names property for ethernet node X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2019 08:24:43 -0000 From: Guenter Roeck 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 Reviewed-by: Alistair Francis Signed-off-by: Palmer Dabbelt --- hw/riscv/sifive_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 8313f2605e..ae5a16e636 100644 --- 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, "clocks-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); -- 2.21.0