From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD26EC433F5 for ; Tue, 1 Feb 2022 20:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242531AbiBAUtm (ORCPT ); Tue, 1 Feb 2022 15:49:42 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:38076 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbiBAUtl (ORCPT ); Tue, 1 Feb 2022 15:49:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=GfcG5XCj3A/ORARzsiKJEsAfW7hdPTM5S0U/fpp6p/g=; b=nAKXo/zlrHykd0L+mHF0gdkZwg g1xKj0DrxxcJwhHCZ+RUcTB8p8rce1ujKp36K39mGRvpJX39io8eb3994qjoaSJ4jvC/bIvJGTZBi JVD+dNMGSoNTAnGM6/lNmH3KMXKXPbQdEG7V9LO5O44AkAhsVj1naCybvwwIcnyqkQ4Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nF05b-003rcB-M6; Tue, 01 Feb 2022 21:49:23 +0100 Date: Tue, 1 Feb 2022 21:49:23 +0100 From: Andrew Lunn To: Tim Harvey Cc: Martin Schiller , "Russell King (Oracle)" , Hauke Mehrtens , martin.blumenstingl@googlemail.com, Florian Fainelli , hkallweit1@gmail.com, David Miller , kuba@kernel.org, netdev , open list , Dan Murphy Subject: Re: [PATCH net-next v6] net: phy: intel-xway: Add RGMII internal delay configuration Message-ID: References: <20210719082756.15733-1-ms@dev.tdt.de> <94120968908a8ab073fa2fc0dd56b17d@dev.tdt.de> <81cce37d4222bbbd941fcc78ff9cacca@dev.tdt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > However, I don't at all like the fact that this > particular patch defaults the delays to 2ns if 'rx-internal-delay-ps' > and 'tx-internal-delay-ps' is missing from the dt. How does this work in combination with phy-mode 'rgmii', 'rgmii-id' etc? Using 2ns as a default for rgmii-id is sensible, however i would say it is wrong for rgmii. > The issue I have here is that if dt's have not been updated to add the > common delay properties this code will override what the boot firmware > may have configured them to. I feel that if these common delay > properties are not found in the device tree, then no changes to the > delays should be made at all. If you don't want the PHY driver to touch the delays at all because you know something else has set it up, you can use phy-mode="", which should be interpreted as PHY_INTERFACE_MODE_NA. Andrew