]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: fix Serdes configuration in vsc8584_config_init
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 5 Jun 2020 14:00:09 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jun 2020 20:16:13 +0000 (13:16 -0700)
commit33ceeaf61ce9f765d9595b91467c0c1340067a02
tree0647fbff16c8baa7086501c5cb7472e8e106f98d
parent78d08f5d1136d274a034fc7ede6223d55b5c98bc
net: phy: mscc: fix Serdes configuration in vsc8584_config_init

When converting the MSCC PHY driver to shared PHY packages, the Serdes
configuration in vsc8584_config_init was modified to use 'base_addr'
instead of 'base' as the port number. But 'base_addr' isn't equal to
'addr' for all PHYs inside the package, which leads to the Serdes still
being enabled on those ports. This patch fixes it.

Fixes: e4cf03f5b6d8 ("net: phy: mscc: use phy_package_shared")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc_main.c