Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21067291ybl; Sun, 5 Jan 2020 19:11:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyKzQ0AFxpXNBPjB2ufe+j7UwWCcIn49gjGJ7lbTdjsXITzyMAbWbBdac8acHnHJLGiJGY3 X-Received: by 2002:a05:6830:1755:: with SMTP id 21mr115022746otz.323.1578280317133; Sun, 05 Jan 2020 19:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578280317; cv=none; d=google.com; s=arc-20160816; b=GM62Zg4JM9cGD5uMgUa0ChJmRsHaofSHS9l6sSaZS0xjRtd/QvLbuOynJDpy3THJRq pMK9kgobJChdg8kMkB8mrsbQwLhvxetRgMGEBwRrgsHsoxP/VD3Ol4elPyBaP6hq1gRm XbLjtkNyPSyp8UD2n7c0YYn7lXN2j0OYIhhKqcrwis4sB1fRRA2cYdrexgkHJ1UbWST7 QV+FJJwR8+VIu1L079Lpl2V51kpzVPMhp0bY4IwLCT2gXmBN37gbCIKUIeiRnxWOHSP8 RJisNaVvHy8R87O9rGrlYrOYe9pb2zTWZoT8RCr6pZj0tsSzv5ieEvob6xvJt8eMmYiK KWlQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gEw3Tlz9En3X1lkscx1y+pW70YD4LrTeezgEOR80IQo=; b=jXYHV5E16UOccyVRQ1LYC6fhijah0Q1x6GzqUKTc+0i5F7I8pU1ScJrBOpI8Tx5rYg hzqrSHcZmhg1jdEI9jCcZrDOTNyznAowmXehwsNppAsH+sIST1eJQ9GmZBPZW6I3N+Gk XVQ1EApSigeF1ChtoUrmKE0d/udTF27l/Z2XiWbU1wYf2QgksNC25M1JVbI55wlxMdDY Umj1FIim7wvA8qHi2CHjdoWj9g3yEk0ubDBUrIQw8s1cjW/+cipCBn0rGr3Z9Ic8Rp/9 y8NiIo4oAhwqYNy+/WYOIASYwQK6hG2eAkVZtY2tUHDEwWjCHz134CZE6z0F5UiibM5V 7Eww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="OlmUl5r/"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t185si32519458oib.39.2020.01.05.19.11.44; Sun, 05 Jan 2020 19:11:57 -0800 (PST) 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=@kernel.org header.s=default header.b="OlmUl5r/"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727454AbgAFDJs (ORCPT + 99 others); Sun, 5 Jan 2020 22:09:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:34028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727307AbgAFDJs (ORCPT ); Sun, 5 Jan 2020 22:09:48 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 572D321582; Mon, 6 Jan 2020 03:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578280187; bh=bUleWiSui0OeFOKynscfUZWPrYZMG7BHsBIGW0ViyGI=; h=From:To:Cc:Subject:Date:From; b=OlmUl5r/Uqc8ayGPJj9filxnOVwlb0Sk0xcEdvgck8Zi/ONUlE+KjbRDDyygis0N8 Ts+Fr1oCrb78cPPGrHPTdoJRA4A5FZgYPYy3Th7WO+CCcZlPwctxoPe3lg9vp3baXj 8GMytWb9Z6I23+QwRK3ZMpbTr3voAI8yn3pZktwI= Received: by wens.tw (Postfix, from userid 1000) id E92845FCEC; Mon, 6 Jan 2020 11:09:45 +0800 (CST) From: Chen-Yu Tsai To: "David S. Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Ripard Cc: Chen-Yu Tsai , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH netdev] net: stmmac: dwmac-sun8i: Allow all RGMII modes Date: Mon, 6 Jan 2020 11:09:45 +0800 Message-Id: <20200106030945.19774-1-wens@kernel.org> X-Mailer: git-send-email 2.24.1 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 From: Chen-Yu Tsai Allow all the RGMII modes to be used. This would allow us to represent the hardware better in the device tree with RGMII_ID where in most cases the PHY's internal delay for both RX and TX are used. Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i") Signed-off-by: Chen-Yu Tsai --- Maybe CC stable so future device trees can be used with stable kernels? --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c index 1c8d84ed8410..01b484cb177e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c @@ -957,6 +957,9 @@ static int sun8i_dwmac_set_syscon(struct stmmac_priv *priv) /* default */ break; case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_ID: + case PHY_INTERFACE_MODE_RGMII_RXID: + case PHY_INTERFACE_MODE_RGMII_TXID: reg |= SYSCON_EPIT | SYSCON_ETCS_INT_GMII; break; case PHY_INTERFACE_MODE_RMII: -- 2.24.1