]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite033a924cc839b7c0d6c9c2ee60c84d3e63eb879
treeba105b88ce0632afd823bdb4a08b128510a6c092
parente0e3462ff442aa1db02dd689144ced6874fc9518
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: 2bdbf5a23dc6 ("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