Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4259648ybb; Tue, 7 Apr 2020 04:04:49 -0700 (PDT) X-Google-Smtp-Source: APiQypJJHz0pNa2F0jNemiGcaKS2En0I/9GL2OBTbEWLeX6uIWQFPWWoc1SE0Rl53CZqw2BY5sCM X-Received: by 2002:a9d:6a05:: with SMTP id g5mr1070836otn.116.1586257488948; Tue, 07 Apr 2020 04:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586257488; cv=none; d=google.com; s=arc-20160816; b=IKPMQZaY9LidEhRe1z9cAjn+vMqxPc3V/8/YlAJpvvtj40sc0P+TG2vILbswf/DPIu zNMSffnjGkBVPkbo4sYy0Gly6dlHl++ditt0l/0ufb10kAYx7QQZTCPRk3Nt+zuro+JJ Z0zCBwevxKy+rQpS+rQZWcyqPrO9xd4ixxjANNBDPzaOYzfEgQUPaeejBINW31IKfmVT xFLdOWY239UbII/qUDjSjlLM23IuRI8YZivsa5FJsW0Hm66EYbLGNi0rFyHboSSRoHcz u+ngMulhXZtf8+UiV0RbW+olPu3EMFdh+7qiID9eby5e+2HEos19BCZWE9TnwwOq99u0 IGzQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=1AKRX9q0QkQv7tnifxaF/SPy+mA9+ThvLtymeeiPWqw=; b=Cp7VCmFOAdQxu2pxOPpyAexVmCc4feEuRCImBNHyVUG7M97P0YGXZHe+AnPJQu24m4 TIWPaMrYZUwpFInpzibRt5a8K/9gfFzVNwMjfs5/VKhLdztUbxF6HpOVoE7T1ggp/42v A0J6CACtIYNJnd2qGQxPz7SnSdVhSAl3NZs3KeXoPX2hXfofGXwvQHUYzrjJ8tecLtlF S6ljt8q3EvElLf0XA/ZGrOX5envzDlWcQGOQ/9L28rw7knus5gEdLfBKcCXd8/WO0kFW Bnmt8iPaKxAEY/asP+APZ8WaF7+8MTCW2bhPOVEHAM8pDEjSz2Mehm1C8K8oWE2mvE5S 46sg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si1078051oti.61.2020.04.07.04.04.36; Tue, 07 Apr 2020 04:04:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728329AbgDGLCr (ORCPT + 99 others); Tue, 7 Apr 2020 07:02:47 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:42043 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbgDGLCr (ORCPT ); Tue, 7 Apr 2020 07:02:47 -0400 Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLm02-0003qi-5i; Tue, 07 Apr 2020 13:02:34 +0200 Received: from [IPv6:2a03:f580:87bc:d400:9c00:37c7:b172:db58] (unknown [IPv6:2a03:f580:87bc:d400:9c00:37c7:b172:db58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mkl@blackshift.org", Issuer "StartCom Class 1 Client CA" (not verified)) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 4729B4DDF77; Tue, 7 Apr 2020 11:02:29 +0000 (UTC) Subject: Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY To: Philippe Schenker , "o.rempel@pengutronix.de" , "hkallweit1@gmail.com" , "f.fainelli@gmail.com" , "andrew@lunn.ch" Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux@armlinux.org.uk" , "kernel@pengutronix.de" , "david@protonic.nl" , "davem@davemloft.net" References: <20200407093654.26095-1-o.rempel@pengutronix.de> <699bf716ce12178655b47ce77227e4e42b85de1b.camel@toradex.com> From: Marc Kleine-Budde Openpgp: preference=signencrypt Autocrypt: addr=mkl@pengutronix.de; prefer-encrypt=mutual; keydata= mQINBFFVq30BEACtnSvtXHoeHJxG6nRULcvlkW6RuNwHKmrqoksispp43X8+nwqIFYgb8UaX zu8T6kZP2wEIpM9RjEL3jdBjZNCsjSS6x1qzpc2+2ivjdiJsqeaagIgvy2JWy7vUa4/PyGfx QyUeXOxdj59DvLwAx8I6hOgeHx2X/ntKAMUxwawYfPZpP3gwTNKc27dJWSomOLgp+gbmOmgc 6U5KwhAxPTEb3CsT5RicsC+uQQFumdl5I6XS+pbeXZndXwnj5t84M+HEj7RN6bUfV2WZO/AB Xt5+qFkC/AVUcj/dcHvZwQJlGeZxoi4veCoOT2MYqfR0ax1MmN+LVRvKm29oSyD4Ts/97cbs XsZDRxnEG3z/7Winiv0ZanclA7v7CQwrzsbpCv+oj+zokGuKasofzKdpywkjAfSE1zTyF+8K nxBAmzwEqeQ3iKqBc3AcCseqSPX53mPqmwvNVS2GqBpnOfY7Mxr1AEmxdEcRYbhG6Xdn+ACq Dq0Db3A++3PhMSaOu125uIAIwMXRJIzCXYSqXo8NIeo9tobk0C/9w3fUfMTrBDtSviLHqlp8 eQEP8+TDSmRP/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linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <699bf716ce12178655b47ce77227e4e42b85de1b.camel@toradex.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/7/20 12:57 PM, Philippe Schenker wrote: > On Tue, 2020-04-07 at 11:36 +0200, Oleksij Rempel wrote: >> Add support for following phy-modes: rgmii, rgmii-id, rgmii-txid, >> rgmii-rxid. >> >> This PHY has an internal RX delay of 1.2ns and no delay for TX. >> >> The pad skew registers allow to set the total TX delay to max 1.38ns >> and >> the total RX delay to max of 2.58ns (configurable 1.38ns + build in >> 1.2ns) and a minimal delay of 0ns. >> >> According to the RGMII v1.3 specification the delay provided by PCB >> traces >> should be between 1.5ns and 2.0ns. The RGMII v2.0 allows to provide >> this >> delay by MAC or PHY. So, we configure this PHY to the best values we >> can >> get by this HW: TX delay to 1.38ns (max supported value) and RX delay >> to >> 1.80ns (best calculated delay) >> >> The phy-modes can still be fine tuned/overwritten by *-skew-ps >> device tree properties described in: >> Documentation/devicetree/bindings/net/micrel-ksz90x1.txt >> >> Signed-off-by: Oleksij Rempel > > Make sure you do not exceet 80 chars with your phydev_warn. Besides > that: Warning and Error strings should not be wrapped, so that you can better "grep" for them. regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |