aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/dsa/rzn1_a5psw.h
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2023-05-12 09:27:10 +0200
committerDavid S. Miller <davem@davemloft.net>2023-05-13 17:06:38 +0100
commit9e4b45f20c5aac786c728619e5ee746bffce1798 (patch)
tree8767cd7293c10dd4c6c2e1dd2d3877870628abaf /drivers/net/dsa/rzn1_a5psw.h
parentd80fc101d2eb9b3188c228d61223890aeea480a4 (diff)
net: dsa: rzn1-a5psw: enable management frames for CPU port
Currently, management frame were discarded before reaching the CPU port due to a misconfiguration of the MGMT_CONFIG register. Enable them by setting the correct value in this register in order to correctly receive management frame and handle STP. Fixes: 888cdb892b61 ("net: dsa: rzn1-a5psw: add Renesas RZ/N1 advanced 5 port switch driver") Signed-off-by: Clément Léger <clement.leger@bootlin.com> Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Reviewed-by: Piotr Raczynski <piotr.raczynski@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/rzn1_a5psw.h')
-rw-r--r--drivers/net/dsa/rzn1_a5psw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/rzn1_a5psw.h b/drivers/net/dsa/rzn1_a5psw.h
index c67abd49c013..b4fbf453ff74 100644
--- a/drivers/net/dsa/rzn1_a5psw.h
+++ b/drivers/net/dsa/rzn1_a5psw.h
@@ -36,7 +36,7 @@
#define A5PSW_INPUT_LEARN_BLOCK(p) BIT(p)
#define A5PSW_MGMT_CFG 0x20
-#define A5PSW_MGMT_CFG_DISCARD BIT(7)
+#define A5PSW_MGMT_CFG_ENABLE BIT(6)
#define A5PSW_MODE_CFG 0x24
#define A5PSW_MODE_STATS_RESET BIT(31)