net: phy: lan87xx: fix access to wrong register of LAN87xx
authorAndre Edich <andre.edich@microchip.com>
Mon, 29 Mar 2021 09:45:36 +0000 (11:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Mar 2021 20:13:08 +0000 (13:13 -0700)
commitfdb5cc6ab3b6a1c0122d3644a63ef9dc7a610d35
treeba105b88ce0632afd823bdb4a08b128510a6c092
parent9c0ee085c49c11381dcbd609ea85e902eab88a92
net: phy: lan87xx: fix access to wrong register of LAN87xx

The function lan87xx_config_aneg_ext was introduced to configure
LAN95xxA but as well writes to undocumented register of LAN87xx.
This fix prevents that access.

The function lan87xx_config_aneg_ext gets more suitable for the new
behavior name.

Reported-by: Måns Rullgård <mans@mansr.com>
Fixes: 05b35e7eb9a1 ("smsc95xx: add phylib support")
Signed-off-by: Andre Edich <andre.edich@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c