[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+h21hrvsfwspGE6z37p-fwso3oD0pXijh+fZZfEEUEv6bySHQ@mail.gmail.com>
Date: Fri, 20 Mar 2020 12:38:05 +0200
From: Vladimir Oltean <olteanv@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: "David S. Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Antoine Tenart <antoine.tenart@...tlin.com>
Subject: Re: [PATCH net-next 1/4] net: phy: mscc: rename enum
rgmii_rx_clock_delay to rgmii_clock_delay
Hi Andrew,
On Fri, 20 Mar 2020 at 12:09, Andrew Lunn <andrew@...n.ch> wrote:
>
> On Thu, Mar 19, 2020 at 11:16:46PM +0200, Vladimir Oltean wrote:
> > From: Vladimir Oltean <vladimir.oltean@....com>
> >
> > There is nothing RX-specific about these clock skew values. So remove
> > "RX" from the name in preparation for the next patch where TX delays are
> > also going to be configured.
> >
> > Signed-off-by: Vladimir Oltean <vladimir.oltean@....com>
> > ---
> > drivers/net/phy/mscc/mscc.h | 18 +++++++++---------
> > drivers/net/phy/mscc/mscc_main.c | 2 +-
> > 2 files changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/net/phy/mscc/mscc.h b/drivers/net/phy/mscc/mscc.h
> > index 29ccb2c9c095..56feb14838f3 100644
> > --- a/drivers/net/phy/mscc/mscc.h
> > +++ b/drivers/net/phy/mscc/mscc.h
> > @@ -12,15 +12,15 @@
> > #include "mscc_macsec.h"
> > #endif
> >
> > -enum rgmii_rx_clock_delay {
> > - RGMII_RX_CLK_DELAY_0_2_NS = 0,
> > - RGMII_RX_CLK_DELAY_0_8_NS = 1,
> > - RGMII_RX_CLK_DELAY_1_1_NS = 2,
> > - RGMII_RX_CLK_DELAY_1_7_NS = 3,
> > - RGMII_RX_CLK_DELAY_2_0_NS = 4,
> > - RGMII_RX_CLK_DELAY_2_3_NS = 5,
> > - RGMII_RX_CLK_DELAY_2_6_NS = 6,
> > - RGMII_RX_CLK_DELAY_3_4_NS = 7
> > +enum rgmii_clock_delay {
> > + RGMII_CLK_DELAY_0_2_NS = 0,
> > + RGMII_CLK_DELAY_0_8_NS = 1,
> > + RGMII_CLK_DELAY_1_1_NS = 2,
> > + RGMII_CLK_DELAY_1_7_NS = 3,
> > + RGMII_CLK_DELAY_2_0_NS = 4,
> > + RGMII_CLK_DELAY_2_3_NS = 5,
> > + RGMII_CLK_DELAY_2_6_NS = 6,
> > + RGMII_CLK_DELAY_3_4_NS = 7
> > };
>
> Can this be shared?
>
> https://www.spinics.net/lists/netdev/msg638747.html
>
> Looks to be the same values?
>
> Can some of the implementation be consolidated?
>
> Andrew
2 issues:
- I don't quite understand that patch. I searched for VSC8584
documentation but I don't find any RGMII PHY? Just a SGMII/QSGMII one.
- That patch is writing to MSCC_PHY_RGMII_SETTINGS (defined to 18).
This one is writing to MSCC_PHY_RGMII_CNTL (defined to 20). And since
I have no documentation to understand why, I'm back to square 1.
Thanks,
-Vladimir
Powered by blists - more mailing lists