net: phy: improve auto-neg emulation in swphy
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 24 Feb 2019 16:41:47 +0000 (17:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 06:28:15 +0000 (22:28 -0800)
commit726097d6d6d8e928c62f459305d74856f7cab155
tree23b25e830d552589391e6423cc50e6f1da5da544
parente8b47b53a172e74dd9907eb7810f02a1d09fb29b
net: phy: improve auto-neg emulation in swphy

Auto-neg emulation currently doesn't set bit BMCR_ANENABLE in BMCR,
add this. Users will ignore speed and duplex settings in BMCR because
we're emulating auto-neg, therefore we can remove related code.
See also following discussion [0].

[0] https://marc.info/?t=155041784900002&r=1&w=2

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