On Thu, Oct 31, 2019 at 02:04:22PM +0100, Andrew Lunn wrote: > On Wed, Oct 30, 2019 at 08:21:17PM +0000, Priit Laes wrote: > > Heya! > > > > I have noticed that with sun7i-dwmac driver (OLinuxino Lime2 eMMC), link > > detection fails consistently with certain 1000Mbit partners (for example > > Huawei > > B525s-23a 4g modem ethernet outputs and RTL8153-based USB3.0 ethernet > > dongle), > > but the same hardware works properly with certain other link partners > > (100Mbit GL AR150 > > for example). > > Hi Pritt > > What PHY is used? And what happens if you use the specific PHY driver, > not the generic PHY driver?
Schematics of the board are here: https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-OLinuXino-LIME2/1.%20Latest%20hardware%20revision/A20-OLinuXino-Lime2_Rev_K2_COLOR.pdf So it has a KSZ9031. The micrel driver supports that device. And there is a patch which might be relevant: ommit 3aed3e2a143c9619f4c8d0a3b8fe74d7d3d79c93 Author: Antoine Tenart <[email protected]> Date: Tue Apr 16 12:10:20 2019 +0200 net: phy: micrel: add Asym Pause workaround The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric Pause capability is set. This issue is described in a Silicon Errata (DS80000691D or DS80000692D), which advises to always disable the capability. This patch implements the workaround by defining a KSZ9031 specific get_feature callback to force the Asymmetric Pause capability bit to be cleared. This fixes issues where the link would not come up at boot time, or when the Asym Pause bit was set later on. Signed-off-by: Antoine Tenart <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]> Please test using the Micrel PHY driver and see if that solves your problem. Andrew -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20191031131404.GK10555%40lunn.ch.
