Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10103458ybl; Thu, 26 Dec 2019 10:53:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyRuQtAJPuviTAs1ndp4y/1d8waypPyGaSBDbQiEqUmMBUDEAnCEkI4KPqVOg8b4YsCwO5C X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr53521996otq.75.1577386400104; Thu, 26 Dec 2019 10:53:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577386400; cv=none; d=google.com; s=arc-20160816; b=qQ0tgY4wwQFNUbTIbSX6h1pf5aFEAvm+/LSkyMFJkBMQwJ8dmYaPAp37p3aj4ycEHB k54FZGhkx8E13KX/jjfYJstG6/HIkPKz0P8qjzyIGOyvhJ0nifVer0VeiwuUTuoi3RzO NVCXXKgFcAIxMhxN+LzzISiXcFJaNWqVVYRNzHhbTxjp0w9Oxm+Ak7cOUELg1zh7CCw3 5EJa1KRZG+C5qdqjKRJMdCaQCfv56e9zq18dR69rR52J9QwNKp0kCLRnjngbsLia0ima CXkAflOZxEbKe4poRGM8LZ0MQ6uuJbeFRyZxU+sOK5kSggUt8NMD0tkc0mZoZv2p8ceh Xx8w== 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=Ypv1P+w8u0b0xjjfk63+8/r3fcQQ50esgG/WxnES284=; b=e5X6LMn4mDZqU5rGHSXd1jHThU3iQqZO0jznI139vV8LsTLzMsQBFnVfIb9tlE5Oi+ iZfkCKEisG7L8wkoSpF1sXIaXOVz0xqGmTTVuIVpztgRg2QCXcJr/H93761yQTaszOzK RgQ1GnGnb+ZD5t5Ic/ZqM250Ba7gz5cNEgMCX4NczjO+2cP5unRmR9QLWQ/iJr8OhWhF zELJEaF4UFxsvOUJrS/FxvbOgx7l0tGZyszkF5sg+umOwa0F1GG0SUxeG/31JzQZZvWd JZdlXqqDq1Ao1S8g6j3qvfvJQN81/LfNRAaXcHLqYN41nrdfeO+gUce4w3Z83gvs44eW genw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="F/35XYsC"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98si13170668oty.60.2019.12.26.10.53.08; Thu, 26 Dec 2019 10:53:20 -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=@googlemail.com header.s=20161025 header.b="F/35XYsC"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726933AbfLZSw3 (ORCPT + 99 others); Thu, 26 Dec 2019 13:52:29 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40700 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfLZSw2 (ORCPT ); Thu, 26 Dec 2019 13:52:28 -0500 Received: by mail-wm1-f68.google.com with SMTP id t14so6642460wmi.5; Thu, 26 Dec 2019 10:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ypv1P+w8u0b0xjjfk63+8/r3fcQQ50esgG/WxnES284=; b=F/35XYsCTf2aMj5zaXMWHKeSm3rrKNRco1feL0oBX2a3PYEiLiNAXf+YLSBNl5Xxlg orKHkmAhn5ACBZOz8ibgXQ18cgBNFtC1XwNvIT7Gr3H1SCjXScO0jOqAHKh1qUXXybvv xmPAcEhIgSXuAwALHZFy8OzlTezEQpwlqYOqGfvd5sglTbwFM/IXpk8yritCeSViRWbw m6yRCsaBiubozEzpqnmaxZUE9wuqBx1rrjxW8fD75pFWb45MeAYlFsJa0xk/WitRlMDd SlTU8M1IwGO0PJayZ8hPxsc7Cp5kfVsm4LNJup58YKp2g4c+jEf1Wd8nQ9rnZ/IujWa6 kXBA== 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:mime-version :content-transfer-encoding; bh=Ypv1P+w8u0b0xjjfk63+8/r3fcQQ50esgG/WxnES284=; b=DNqs4kFYAD+gXzvJ5WINeszCunKQ3G3/FIxnRZ8QWjYuwKNi4txrA8891mSkZ+XKjh oxjj7A7qfVaFWMnlmsgBDhMQyUB4hwMu5nfkEp1Z1T7WeRbHMX/z6GlYbWvQ63PBd/le 7royTqpbBf+10tUOEOg9Me+Jg3MNmQkJUEwq5d+DEGjICCyyGCbpHU+bIJW/JzQWGwvc YIsDFw0+LvXsuf+llF8aojNAaNAgojVveWoY8fpFCr2p3lKUI5XkBEFja8hWezZsiYnI FIfz9MRPcaTRiIAD+ncOWeRb+PX9AFyLR54D0y7aeRbWgnBeJYg5C9syoBkQ9ks1HH0M dlfA== X-Gm-Message-State: APjAAAV6cz/MEvu5J2/pjWA8RHv1wHSb3eyJxFNlKWI5cPWxKYLq9S+i hKnKjHk1IxYlDkIFSlcOIDY= X-Received: by 2002:a7b:cfc9:: with SMTP id f9mr15914955wmm.1.1577386346270; Thu, 26 Dec 2019 10:52:26 -0800 (PST) Received: from localhost.localdomain (p200300F1373A1900428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:373a:1900:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id j12sm32129352wrt.55.2019.12.26.10.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 10:52:25 -0800 (PST) From: Martin Blumenstingl To: andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: [PATCH 0/2] RTL8211F: RGMII RX/TX delay configuration improvements Date: Thu, 26 Dec 2019 19:51:46 +0100 Message-Id: <20191226185148.3764251-1-martin.blumenstingl@googlemail.com> 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 In discussion with Andrew [0] we figured out that it would be best to make the RX delay of the RTL8211F PHY configurable (just like the TX delay is already configurable). While here I took the opportunity to add some logging to the TX delay configuration as well. There is no public documentation for the RX and TX delay registers. I received this information a while ago (and created this RfC patch back then: [1]). Realtek gave me permission to take the information from the datasheet extracts and phase them in my own words and publish that (I am not allowed to publish the datasheet extracts). I have tested these patches on two boards: - Amlogic Meson8b Odroid-C1 - Amlogic GXM Khadas VIM2 Both still behave as before these changes (iperf3 speeds are the same in both directions: RX and TX), which is expected because they are currently using phy-mode = "rgmii" with the RX delay not being generated by the PHY. [0] https://patchwork.ozlabs.org/patch/1215313/ [1] https://patchwork.ozlabs.org/patch/843946/ Martin Blumenstingl (2): net: phy: realtek: add logging for the RGMII TX delay configuration net: phy: realtek: add support for configuring the RX delay on RTL8211F drivers/net/phy/realtek.c | 59 +++++++++++++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 8 deletions(-) -- 2.24.1