Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1018637ybm; Wed, 27 May 2020 13:57:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym7DYz8FbV/yDdOZKfC6FQyPUXC77VULxBmzDj+k6lcQ2AwZtAK1A8qHQBZEe/B2MraDYA X-Received: by 2002:a17:906:b348:: with SMTP id cd8mr147249ejb.139.1590613064851; Wed, 27 May 2020 13:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590613064; cv=none; d=google.com; s=arc-20160816; b=gVDLjpKdVYOwAEJFJWocAhvRgqYv7a01jZO6IojlKc+LxLz7TQ+W1oI4Rzjll4XO2K 65cM2kMS2qcC+2CIRsoZe13efg8oC/dCpNF2SeQsKwtgW0ega+/xyHq5o4Ip1T6M5gtb YOExVOfeERMftyl5Cmdo4rZ7TGygUd7V1BtWnQDLAPmWyt+vuWfrarJ5K5mwcuI7Xv5Q asRoei2ZBRGnnUEFi9OdB9cIYAp6O2zLa5bf/GE55zrIu0c0ZwYJFYtWZ59h2GkrfDn9 b1G63aLgeXQ0vYRyQ69lZhDVf3+CW8tQgDbpgEER+nY/1ld5f7Fzm8q5cCp5PxkJsIpm uHKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gKAXQgUdWQP/zL1P3eNew3G65B4gJ6Xt1zF4bmT1hDg=; b=g2LLCAi38BW9CMVH+iDKveRT1JPlWYnc7+yR7GFWdvAXYRGKjsMFbeY0LfR8huzg9R wKPaA35pjrBxZ6+7e2qORQ7lvjZkorTVmgmYL86Si1xHJ8nMnJHZMiXQVbqp8ZB5hVPM ocQm2/RWNPwmarWRysI0vmNdrlbwZscgjkM/BO1y8JQYqTfVDPHzLKkvfIvuLMKNDEsL WWXmRiE//NUny9FUAekJKP8S3UBzb++VEORXC8fq1xfl+pon4J2BsoFLi8YVKxFmRtyV xa/CeqVStmGe86TrtpFbKNArVw/tQlFQJ+M8z/wl0F0nss1c/b6iSwuO9//8kmnsFv0j ZODg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=WyvaIFrA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qu2si2494969ejb.579.2020.05.27.13.57.04; Wed, 27 May 2020 13:57:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=WyvaIFrA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728724AbgE0Uwm (ORCPT + 99 others); Wed, 27 May 2020 16:52:42 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:53104 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbgE0Uwm (ORCPT ); Wed, 27 May 2020 16:52:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gKAXQgUdWQP/zL1P3eNew3G65B4gJ6Xt1zF4bmT1hDg=; b=WyvaIFrAsWiNdYbeeSXajmyKD6 6I8uuI6yBuqgB3E3YJb/fM/ogGpVN6EhTp9s1KROW2q6RwLo9hFHGFaGz8E86tphPbfvG8p5+xnMf sGW6H/UMHw8y6QxnMjTQRLU/Qwgf3L6OJ4PFdtaTMogDnXyqRrvzHFcIlrmKLtm3N/6c=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1je32D-003S61-VH; Wed, 27 May 2020 22:52:21 +0200 Date: Wed, 27 May 2020 22:52:21 +0200 From: Andrew Lunn To: Geert Uytterhoeven Cc: Oleksij Rempel , Philippe Schenker , "sergei.shtylyov@cogentembedded.com" , "kernel@pengutronix.de" , "davem@davemloft.net" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "linux-kernel@vger.kernel.org" , "david@protonic.nl" , "netdev@vger.kernel.org" , "f.fainelli@gmail.com" , "linux-renesas-soc@vger.kernel.org" , Kazuya Mizuguchi , Grygorii Strashko Subject: Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY Message-ID: <20200527205221.GA818296@lunn.ch> References: <20200422072137.8517-1-o.rempel@pengutronix.de> <20200428154718.GA24923@lunn.ch> <6791722391359fce92b39e3a21eef89495ccf156.camel@toradex.com> <20200429092616.7ug4kdgdltxowkcs@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > You may wonder what's the difference between 3 and 4? It's not just the > PHY driver that looks at phy-mode! > drivers/net/ethernet/renesas/ravb_main.c:ravb_set_delay_mode() also > does, and configures an additional TX clock delay of 1.8 ns if TXID is > enabled. Hi Geert That sounds like a MAC bug. Either the MAC insert the delay, or the PHY does. If the MAC decides it is going to insert the delay, it should be masking what it passes to phylib so that the PHY does not add a second delay. This whole area of RGMII delays has a number of historical bugs, which often counter act each other. So you fix one, and it break somewhere else. In this case, not allowing skews for plain RGMII is probably being too strict. We probably should relax that constrain in this case, for this PHY driver. Andrew