aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mscc/mscc_macsec.h
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@bootlin.com>2020-05-22 17:55:45 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-23 16:31:53 -0700
commit0ddfee1feece1c85592d49b759286032ef2dd803 (patch)
tree6792d99bf9b7a103202a4eaec791809eef4bd794 /drivers/net/phy/mscc/mscc_macsec.h
parentnet: stmmac: don't attach interface until resume finishes (diff)
downloadlinux-dev-0ddfee1feece1c85592d49b759286032ef2dd803.tar.xz
linux-dev-0ddfee1feece1c85592d49b759286032ef2dd803.zip
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: 1bbe0ecc2a1a ("net: phy: mscc: macsec initialization") Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mscc/mscc_macsec.h')
-rw-r--r--drivers/net/phy/mscc/mscc_macsec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/mscc/mscc_macsec.h b/drivers/net/phy/mscc/mscc_macsec.h
index d0783944d106..d751f2946b79 100644
--- a/drivers/net/phy/mscc/mscc_macsec.h
+++ b/drivers/net/phy/mscc/mscc_macsec.h
@@ -64,7 +64,8 @@ enum macsec_bank {
FC_BUFFER = 0x04,
HOST_MAC = 0x05,
LINE_MAC = 0x06,
- IP_1588 = 0x0e,
+ PROC_0 = 0x0e,
+ PROC_2 = 0x0f,
MACSEC_INGR = 0x38,
MACSEC_EGR = 0x3c,
};