]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: mii: check phy advertising register when geting link status
authorDongpo Li <lidongpo@hisilicon.com>
Mon, 22 Aug 2016 13:03:29 +0000 (21:03 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 22 Aug 2016 19:21:23 +0000 (14:21 -0500)
commit8c83c0303c0eaa5f5323d08ffe1f786759e509be
tree7edd6a690f784fd4559b18dd23cf3d73df649422
parent05237f735e5f325e03db8ff153cb5266e337a2fe
net: mii: check phy advertising register when geting link status

When phy autoneg on, the link speed and duplex should be
determined by phy advertising register and
phy link partner ability register.
Check phy advertising register when geting phy link speed and
duplex if autoneg on.

Signed-off-by: Dongpo Li <lidongpo@hisilicon.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
common/miiphyutil.c