netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: Grygorii Strashko <grygorii.strashko@ti.com>,
	Marc Gonzalez <marc_gonzalez@sigmadesigns.com>,
	Andrew Lunn <andrew@lunn.ch>, Mans Rullgard <mans@mansr.com>,
	Martin Blumenstingl <martin.blumenstingl@gmail.com>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	Zefir Kurtisi <zefir.kurtisi@neratec.com>,
	Timur Tabi <timur@codeaurora.org>, Daniel Mack <zonque@gmail.com>,
	Sekhar Nori <nsekhar@ti.com>
Cc: netdev <netdev@vger.kernel.org>,
	Linux ARM <linux-arm-kernel@lists.infradead.org>,
	"David S. Miller" <davem@davemloft.net>,
	Thibaud Cornic <thibaud_cornic@sigmadesigns.com>,
	Mason <slash.tmp@free.fr>
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	[thread overview]
Message-ID: <abbcd40c-5ecd-2197-73d0-2046cf1e7b5c@gmail.com> (raw)
In-Reply-To: <5ea9905f-e74a-4a43-dc5b-883ec9daf030@ti.com>

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 <marc_gonzalez@sigmadesigns.com>
>> ---
>>   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

  reply	other threads:[~2017-07-19 19:30 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-19 15:29 [PATCH 0/2] Atheros 803x PHY RGMII clock delays Marc Gonzalez
2017-07-19 15:31 ` [PATCH 1/2] net: phy: at803x: Fix RGMII RX and TX clock delays setup Marc Gonzalez
2017-07-19 17:49   ` Timur Tabi
2017-07-19 19:24   ` Grygorii Strashko
2017-07-19 19:30     ` Florian Fainelli [this message]
2017-07-19 20:11       ` Grygorii Strashko
2017-07-19 21:29       ` Mason
2017-07-19 21:44         ` Florian Fainelli
2017-07-19 15:33 ` [PATCH 2/2] net: ethernet: nb8800: Fix RGMII TX clock delay setup Marc Gonzalez
2017-07-19 17:17   ` Måns Rullgård
2017-07-19 17:36     ` Mason
2017-07-19 18:30       ` Florian Fainelli
2017-07-19 21:15         ` Mason
2017-07-19 21:34           ` Florian Fainelli
2017-07-20 12:33             ` Mason
2017-07-20 12:39               ` Måns Rullgård
2017-07-24 21:21               ` Mason
2017-07-24 21:49                 ` Florian Fainelli
2017-07-24 22:30                   ` Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abbcd40c-5ecd-2197-73d0-2046cf1e7b5c@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=fabio.estevam@nxp.com \
    --cc=grygorii.strashko@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mans@mansr.com \
    --cc=marc_gonzalez@sigmadesigns.com \
    --cc=martin.blumenstingl@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=slash.tmp@free.fr \
    --cc=thibaud_cornic@sigmadesigns.com \
    --cc=timur@codeaurora.org \
    --cc=zefir.kurtisi@neratec.com \
    --cc=zonque@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).