]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: fix initialization of the MACsec protocol mode
authorAntoine Tenart <antoine.tenart@bootlin.com>
Fri, 22 May 2020 15:55:45 +0000 (17:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:31:53 +0000 (16:31 -0700)
commit681dc80537edefc40e905db740a159124a32fcb6
tree6792d99bf9b7a103202a4eaec791809eef4bd794
parent29343f0aae9ed7590410bae2474deb073f13a71d
net: phy: mscc: fix initialization of the MACsec protocol mode

At the very end of the MACsec block initialization in the MSCC PHY
driver, the MACsec "protocol mode" is set. This setting should be set
based on the PHY id within the package, as the bank used to access the
register used depends on this. This was not done correctly, and only the
first bank was used leading to the two upper PHYs being unstable when
using the VSC8584. This patch fixes it.

Fixes: ee954917e66b ("net: phy: mscc: macsec initialization")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc.h
drivers/net/phy/mscc/mscc_mac.h
drivers/net/phy/mscc/mscc_macsec.c
drivers/net/phy/mscc/mscc_macsec.h
drivers/net/phy/mscc/mscc_main.c