From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [PATCH 1/2] net: phy: at803x: Fix RGMII RX and TX clock delays setup Date: Wed, 19 Jul 2017 12:30:24 -0700 Message-ID: References: <33ed5f4f-9939-dc00-b973-db39c16f2393@sigmadesigns.com> <5ea9905f-e74a-4a43-dc5b-883ec9daf030@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev , Linux ARM , "David S. Miller" , Thibaud Cornic , Mason To: Grygorii Strashko , Marc Gonzalez , Andrew Lunn , Mans Rullgard , Martin Blumenstingl , Fabio Estevam , Zefir Kurtisi , Timur Tabi , Daniel Mack , Sekhar Nori Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:35598 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932608AbdGSTaf (ORCPT ); Wed, 19 Jul 2017 15:30:35 -0400 Received: by mail-wm0-f66.google.com with SMTP id t3so177039wme.2 for ; Wed, 19 Jul 2017 12:30:35 -0700 (PDT) In-Reply-To: <5ea9905f-e74a-4a43-dc5b-883ec9daf030@ti.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 07/19/2017 12:24 PM, Grygorii Strashko wrote: > Hi > > On 07/19/2017 10:31 AM, Marc Gonzalez wrote: >> The current code supports enabling RGMII RX and TX clock delays. >> The unstated assumption is that these settings are disabled by >> default at reset, which is not the case. >> >> RX clock delay is enabled at reset. And TX clock delay "survives" >> across SW resets. Thus, if the bootloader enables TX clock delay, >> it will remain enabled at reset in Linux. >> >> Provide disable functions to configure the RGMII clock delays >> exactly as specified in the fwspec. >> >> Signed-off-by: Marc Gonzalez >> --- >> drivers/net/phy/at803x.c | 32 ++++++++++++++++++++++++-------- >> 1 file changed, 24 insertions(+), 8 deletions(-) > This patch breaks am335x-evm networking. > > To restore it I've had to apply below diff: > diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts > index 200d6ab..9578bdf 100644 > --- a/arch/arm/boot/dts/am335x-evm.dts > +++ b/arch/arm/boot/dts/am335x-evm.dts > @@ -724,12 +724,12 @@ > > &cpsw_emac0 { > phy_id = <&davinci_mdio>, <0>; > - phy-mode = "rgmii-txid"; > + phy-mode = "rgmii-id"; > }; > > &cpsw_emac1 { > phy_id = <&davinci_mdio>, <1>; > - phy-mode = "rgmii-txid"; > + phy-mode = "rgmii-id"; > }; > > &tscadc { > > Sry, can't comment here to much - not E-PHY expert. It's useful feedback, since we had poorly defined "phy-mode" semantics for too long, this is totally expected, Marc this is exactly why Mans is suggesting additional MAC-specific properties to define delays. -- Florian