Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-15 Thread Vinod Koul
On 13-02-19, 09:02, Peter Ujfalusi wrote: > Hi Vinod, > > On 12/02/2019 16.19, Vinod Koul wrote: > > Per "Documentation/devicetree/bindings/net/ethernet.txt" RGMII mode > > should not have delay in PHY whereas RGMII_ID and RGMII_RXID/RGMII_TXID > > can have delay in phy. > > > > So disable the de

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-15 Thread Vinod Koul
On 14-02-19, 08:38, David Miller wrote: > From: Vinod Koul > Date: Tue, 12 Feb 2019 19:49:22 +0530 > > > diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c > > index 8ff12938ab47..7b54b54e3316 100644 > > --- a/drivers/net/phy/at803x.c > > +++ b/drivers/net/phy/at803x.c > > @@ -110,6

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread Florian Fainelli
On 2/14/19 7:06 AM, Niklas Cassel wrote: > On Thu, Feb 14, 2019 at 03:22:28PM +0200, Peter Ujfalusi wrote: >> Hi Niklas, >> >> On 14/02/2019 14.39, Niklas Cassel wrote: > So, I've rebased your old patch, see attachment. > I suggest that Peter test it on am335x-evm. with the patch

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread David Miller
From: Marc Gonzalez Date: Thu, 14 Feb 2019 17:46:54 +0100 > On 14/02/2019 17:38, David Miller wrote: > >> From: Vinod Koul >> Date: Tue, 12 Feb 2019 19:49:22 +0530 >> >>> diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c >>> index 8ff12938ab47..7b54b54e3316 100644 >>> --- a/driv

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread Marc Gonzalez
On 14/02/2019 17:38, David Miller wrote: > From: Vinod Koul > Date: Tue, 12 Feb 2019 19:49:22 +0530 > >> diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c >> index 8ff12938ab47..7b54b54e3316 100644 >> --- a/drivers/net/phy/at803x.c >> +++ b/drivers/net/phy/at803x.c >> @@ -110,6 +1

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread David Miller
From: Vinod Koul Date: Tue, 12 Feb 2019 19:49:22 +0530 > diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c > index 8ff12938ab47..7b54b54e3316 100644 > --- a/drivers/net/phy/at803x.c > +++ b/drivers/net/phy/at803x.c > @@ -110,6 +110,18 @@ static int at803x_debug_reg_mask(struct phy_

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread Niklas Cassel
On Thu, Feb 14, 2019 at 03:22:28PM +0200, Peter Ujfalusi wrote: > Hi Niklas, > > On 14/02/2019 14.39, Niklas Cassel wrote: > >>> So, I've rebased your old patch, see attachment. > >>> I suggest that Peter test it on am335x-evm. > >> > >> with the patch + s/rgmii-txid/rgmii-id in the am335x-evmsk.d

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread Peter Ujfalusi
Hi Niklas, On 14/02/2019 14.39, Niklas Cassel wrote: >>> So, I've rebased your old patch, see attachment. >>> I suggest that Peter test it on am335x-evm. >> >> with the patch + s/rgmii-txid/rgmii-id in the am335x-evmsk.dts ethernet >> is working. >> I don't have am335x-evm to test, but it has the

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread Niklas Cassel
On Thu, Feb 14, 2019 at 12:49:36PM +0200, Peter Ujfalusi wrote: > Hi Niklas, > > On 13/02/2019 19.40, Niklas Cassel wrote: > > On Wed, Feb 13, 2019 at 02:40:18PM +0100, Marc Gonzalez wrote: > >> On 13/02/2019 14:29, Andrew Lunn wrote: > >> > So we have these modes: > > PHY_INTERFACE

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-14 Thread Peter Ujfalusi
Hi Niklas, On 13/02/2019 19.40, Niklas Cassel wrote: > On Wed, Feb 13, 2019 at 02:40:18PM +0100, Marc Gonzalez wrote: >> On 13/02/2019 14:29, Andrew Lunn wrote: >> So we have these modes: PHY_INTERFACE_MODE_RGMII: TX and RX delays disabled PHY_INTERFACE_MODE_RGMII_ID: TX and RX

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Florian Fainelli
On 2/13/19 12:07 PM, Niklas Cassel wrote: > On Wed, Feb 13, 2019 at 09:59:43AM -0800, Florian Fainelli wrote: >> On 2/13/19 9:40 AM, Niklas Cassel wrote: >>> On Wed, Feb 13, 2019 at 02:40:18PM +0100, Marc Gonzalez wrote: On 13/02/2019 14:29, Andrew Lunn wrote: >> So we have these mode

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Niklas Cassel
On Wed, Feb 13, 2019 at 09:59:43AM -0800, Florian Fainelli wrote: > On 2/13/19 9:40 AM, Niklas Cassel wrote: > > On Wed, Feb 13, 2019 at 02:40:18PM +0100, Marc Gonzalez wrote: > >> On 13/02/2019 14:29, Andrew Lunn wrote: > >> > So we have these modes: > > PHY_INTERFACE_MODE_RGMII: TX

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Florian Fainelli
On 2/13/19 9:40 AM, Niklas Cassel wrote: > On Wed, Feb 13, 2019 at 02:40:18PM +0100, Marc Gonzalez wrote: >> On 13/02/2019 14:29, Andrew Lunn wrote: >> So we have these modes: PHY_INTERFACE_MODE_RGMII: TX and RX delays disabled PHY_INTERFACE_MODE_RGMII_ID: TX and RX delays enabl

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Niklas Cassel
On Wed, Feb 13, 2019 at 02:40:18PM +0100, Marc Gonzalez wrote: > On 13/02/2019 14:29, Andrew Lunn wrote: > > >> So we have these modes: > >> > >> PHY_INTERFACE_MODE_RGMII: TX and RX delays disabled > >> PHY_INTERFACE_MODE_RGMII_ID: TX and RX delays enabled > >> PHY_INTERFACE_MODE_RGMII_RXID: RX de

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Marc Gonzalez
On 13/02/2019 14:29, Andrew Lunn wrote: >> So we have these modes: >> >> PHY_INTERFACE_MODE_RGMII: TX and RX delays disabled >> PHY_INTERFACE_MODE_RGMII_ID: TX and RX delays enabled >> PHY_INTERFACE_MODE_RGMII_RXID: RX delay enabled, TX delay disabled >> PHY_INTERFACE_MODE_RGMII_TXID: TX delay ena

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Andrew Lunn
> So we have these modes: > > PHY_INTERFACE_MODE_RGMII: TX and RX delays disabled > PHY_INTERFACE_MODE_RGMII_ID: TX and RX delays enabled > PHY_INTERFACE_MODE_RGMII_RXID: RX delay enabled, TX delay disabled > PHY_INTERFACE_MODE_RGMII_TXID: TX delay enabled, RX delay disabled > > What I don't like

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-13 Thread Niklas Cassel
On Tue, Feb 12, 2019 at 07:49:22PM +0530, Vinod Koul wrote: > Per "Documentation/devicetree/bindings/net/ethernet.txt" RGMII mode > should not have delay in PHY whereas RGMII_ID and RGMII_RXID/RGMII_TXID > can have delay in phy. > > So disable the delay only for RGMII mode and disable for other mo

Re: [PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-12 Thread Peter Ujfalusi
Hi Vinod, On 12/02/2019 16.19, Vinod Koul wrote: > Per "Documentation/devicetree/bindings/net/ethernet.txt" RGMII mode > should not have delay in PHY whereas RGMII_ID and RGMII_RXID/RGMII_TXID > can have delay in phy. > > So disable the delay only for RGMII mode and disable for other modes s/disa

[PATCH] net: phy: at803x: disable delay only for RGMII mode

2019-02-12 Thread Vinod Koul
Per "Documentation/devicetree/bindings/net/ethernet.txt" RGMII mode should not have delay in PHY whereas RGMII_ID and RGMII_RXID/RGMII_TXID can have delay in phy. So disable the delay only for RGMII mode and disable for other modes Fixes: cd28d1d6e52e: ("net: phy: at803x: Disable phy delay for RG