Skip to content

Commit 9e4b45f

Browse files
clementlegerdavem330
authored andcommitted
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: 888cdb8 ("net: dsa: rzn1-a5psw: add Renesas RZ/N1 advanced 5 port switch driver") Signed-off-by: Clément Léger <[email protected]> Signed-off-by: Alexis Lothoré <[email protected]> Reviewed-by: Piotr Raczynski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d80fc10 commit 9e4b45f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/net/dsa/rzn1_a5psw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ static int a5psw_setup(struct dsa_switch *ds)
673673
}
674674

675675
/* Configure management port */
676-
reg = A5PSW_CPU_PORT | A5PSW_MGMT_CFG_DISCARD;
676+
reg = A5PSW_CPU_PORT | A5PSW_MGMT_CFG_ENABLE;
677677
a5psw_reg_writel(a5psw, A5PSW_MGMT_CFG, reg);
678678

679679
/* Set pattern 0 to forward all frame to mgmt port */

drivers/net/dsa/rzn1_a5psw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#define A5PSW_INPUT_LEARN_BLOCK(p) BIT(p)
3737

3838
#define A5PSW_MGMT_CFG 0x20
39-
#define A5PSW_MGMT_CFG_DISCARD BIT(7)
39+
#define A5PSW_MGMT_CFG_ENABLE BIT(6)
4040

4141
#define A5PSW_MODE_CFG 0x24
4242
#define A5PSW_MODE_STATS_RESET BIT(31)

0 commit comments

Comments
 (0)