Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1512274ybl; Fri, 30 Aug 2019 20:05:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzIx4bbrpQOe/RuJmU5wghOkqZnFDHJVgC7dXn/LP0MJ8HGrNZDbGPyrSWaQvxIOpSS6zL X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr18303097plr.74.1567220729101; Fri, 30 Aug 2019 20:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567220729; cv=none; d=google.com; s=arc-20160816; b=jTa62vU83kmZWIcgVPGTiCaPm/YPiBMjR16cwVVYtZ8uXEResLtQK6G7cndk4v1Mte D+v8/AtTp8uHyPrQ6g4eY7ZQYAUbNd+ob8gvW/OMRRzVdqjY9L6g/N7nfcSRQWaYvYCk SrtAx/TBoBGBOSCOcVRgdYS2wi+imdpCw77nreG1D6vJwfi3q20Krg1HkuRCVcStlUUo pgwblvGDgrbukq3sy7DlPqFKgzJAS5s1FsTQkNjDdREHJnRXV36z4HIWqU5AKkH1k/Xq X7/4lDxszCGCNVREPAJ3AksFu6OJFQsV3trmKiS4qWIBdeAWbdXUECCT3+GEOSiDoPES FQyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3eYb4+6SsdvBfSijyDeAJEqJyXxATKZLhU6gQW/pUAc=; b=hRxwW93ZAaXZ/CDsPM6OZyIKL7iAkmqT7z7ebtIAT0/k0Ic02l1f82ojO863mU9Ekf BqY1UThh6q9s8hps5xqyMDKnUA/PZpKMVQNb91XIswbdWMGhIkW+nBaveNcFy+vfYoqF Sr8V670DXBbrfGYa9vUUzUZ+EcTfQ0ehyO3/qKsGEXatXL7FobAq4mjm24rtrB6TV6pN eIwxL5gsTYjg0gKBK/saCXFRRe+DQx9NfYNCZQ22L19rKCIpa/chM2IhVkYa39ybayW2 S0Hu7Kx1MAK2pHuNUut9CbbnKXXL7zQuiHO+cTbGfb/gJPSm4X+o5QzS6M8AE/+6ciFq uWpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gNjQm5Dt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h29si5763589pgh.498.2019.08.30.20.05.14; Fri, 30 Aug 2019 20:05:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gNjQm5Dt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728386AbfHaDEO (ORCPT + 99 others); Fri, 30 Aug 2019 23:04:14 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:32857 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbfHaDEO (ORCPT ); Fri, 30 Aug 2019 23:04:14 -0400 Received: by mail-pl1-f193.google.com with SMTP id go14so4170354plb.0; Fri, 30 Aug 2019 20:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3eYb4+6SsdvBfSijyDeAJEqJyXxATKZLhU6gQW/pUAc=; b=gNjQm5Dtamz9eBrmYZ8uV7PQ6AYvGvXnal90ibmz0M0hzSlr39EHpOCj5ronLeRZ+L MvTDUHMp0l2zzvLWrXu/Hq5ENinizdOR6/dR3PCN0JQdfXRvQHa6TMLG9Y+QBVk2wbIc IOLDetBCJjFQD8Fv1/9QWQ+9O2j/E0B4UDB5yiWEYp/T4AhXUCE0hXgIwRu1k58isj7l EyhDx3MnqyfWpxYtu1HPuJpMVNCaISZL0shzJf7206xGn9PxQh0z0eQA9vEdXYD06V+f qmbz19DBjWilfTgDS/3v8u+U5entQpXORBKJ7OUpHoootbRmhwwtkVaGG47XeM8aHPaC 4vfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3eYb4+6SsdvBfSijyDeAJEqJyXxATKZLhU6gQW/pUAc=; b=b1Bx6Uz2+WPLDYBtbYLhsG3msZ7aSP4fwev51uXy/41iWVWUSQEn+qx0NPjkmMLPY9 5BW4pvecu887OhmbNpdSImswOVp2f0Ls2kER7X0YxSWJ50XAAX3T7+jJDsI+KNcEzZH1 lAlKGpLwWiA3xTOEwpFh2HYWSqP98n51NLk4BDVyJAuk1jGb1UbEV7m7UVwwWb2iWv1r 9ouKdhE8/KykfwXGZSbpYOqz6hfAEx5fZeHuBniuYfDEOC8Z/EnCDCDKAFixixOBEcrp VsafNpNprqWxL74/s/QtpcS0LgkwiTBBqyNdwyk6W0/M8VtqIn3uB7q2DPWrsD07LZPF FCRA== X-Gm-Message-State: APjAAAXCV3jvJLOZ+iF1q/Eylp5cMhCsbdPki5yl5lK5e1sj7gWFjm/X /WRcma+82awbyeIRsplhs4DEvB1vezk= X-Received: by 2002:a17:902:e83:: with SMTP id 3mr17731303plx.319.1567220653007; Fri, 30 Aug 2019 20:04:13 -0700 (PDT) Received: from localhost (g75.222-224-160.ppp.wakwak.ne.jp. [222.224.160.75]) by smtp.gmail.com with ESMTPSA id d20sm8211024pfo.90.2019.08.30.20.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2019 20:04:12 -0700 (PDT) From: Stafford Horne To: LKML Cc: Stafford Horne , Rob Herring , Mark Rutland , Jonas Bonn , Stefan Kristiansson , devicetree@vger.kernel.org, openrisc@lists.librecores.org Subject: [PATCH 1/2] or1k: dts: Fix ethoc network configuration in or1ksim devicetree Date: Sat, 31 Aug 2019 12:03:47 +0900 Message-Id: <20190831030348.6920-2-shorne@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190831030348.6920-1-shorne@gmail.com> References: <20190831030348.6920-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes several issues with the ethoc network device config. Fisrt off, the compatible property used an obsolete compatibility string; this caused the initialization to be skipped. Next, the register map was not given enough space to allocate ring descriptors, this caused module initialization to abort. Finally, we need to mark this device as big-endian as needed by openrisc. This was tested by me in qemu, the setup is documented on the qemu wiki: https://wiki.qemu.org/Documentation/Platforms/OpenRISC Signed-off-by: Stafford Horne --- arch/openrisc/boot/dts/or1ksim.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/openrisc/boot/dts/or1ksim.dts b/arch/openrisc/boot/dts/or1ksim.dts index d8aa8309c9d3..c0cb74e52f95 100644 --- a/arch/openrisc/boot/dts/or1ksim.dts +++ b/arch/openrisc/boot/dts/or1ksim.dts @@ -49,8 +49,9 @@ }; enet0: ethoc@92000000 { - compatible = "opencores,ethmac-rtlsvn338"; - reg = <0x92000000 0x100>; + compatible = "opencores,ethoc"; + reg = <0x92000000 0x800>; interrupts = <4>; + big-endian; }; }; -- 2.21.0