net: phy: use c45 standard to detect link partner autoneg capability
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 31 Mar 2019 17:52:51 +0000 (19:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Apr 2019 20:16:17 +0000 (13:16 -0700)
commit5d237a07f131938e3e35635d483397a0ef0901e6
tree4d3ce18dbc73a9cdb94eafb6e6ac1642edcccebb
parentfa288a42646c3294c5061812c2314a822bfd537c
net: phy: use c45 standard to detect link partner autoneg capability

Currently mii_lpa_mod_linkmode_lpa_t() checks bit LPA_LPACK to detect
whether link partner supports autoneg. This doesn't work correctly at
least on Aquantia AQCS109 when it negotiates 1000Base-T2 mode.
The "link partner is autoneg-capable" bit as defined by clause 45 is
set however. Better let's switch in general to use the clause 45
standard for link partner autoneg detection.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c