Re: net: phy: micrel KSZ9031 ifdown ifup issue

2019-09-16 Thread Paul Thomas
On Mon, Sep 16, 2019 at 11:13 AM Andrew Lunn wrote: > > > When it is in the good state I see that reg 0x01 is 0x796d where bit > > 1.2 reports 'Link is up' and bit 1.5 reports 'Auto-negotiation process > > complete'. However, once I get to the bad state (it may take several > > tries of ifdown, if

Re: net: phy: micrel KSZ9031 ifdown ifup issue

2019-09-16 Thread Andrew Lunn
> When it is in the good state I see that reg 0x01 is 0x796d where bit > 1.2 reports 'Link is up' and bit 1.5 reports 'Auto-negotiation process > complete'. However, once I get to the bad state (it may take several > tries of ifdown, ifup to get there) then reg 0x01 is 0x7649 reporting > 'Link is d

Re: net: phy: micrel KSZ9031 ifdown ifup issue

2019-09-16 Thread Paul Thomas
Hi Andrew, I did some more investigation, and what seems to be happening is the device get's stuck in auto-negotiation. I looked at this using phytool: https://github.com/wkz/phytool When it is in the good state I see that reg 0x01 is 0x796d where bit 1.2 reports 'Link is up' and bit 1.5 reports

Re: net: phy: micrel KSZ9031 ifdown ifup issue

2019-09-14 Thread Andrew Lunn
On Fri, Sep 13, 2019 at 10:42:38AM -0400, Paul Thomas wrote: > Hello, > > I think I'm seeing an issue with the PHY hardware or PHY driver. What > happens is sometimes (but not always) when I do 'ip link set eth0 > down' followed by 'ip link set eth0 up' I don't ever see an > auto-negotiation again

net: phy: micrel KSZ9031 ifdown ifup issue

2019-09-13 Thread Paul Thomas
Hello, I think I'm seeing an issue with the PHY hardware or PHY driver. What happens is sometimes (but not always) when I do 'ip link set eth0 down' followed by 'ip link set eth0 up' I don't ever see an auto-negotiation again. LEDs don't come on, ethtool reports 'Link detected: no'. Even physicall