From 44298f2b7163d2cc7c1d96d551731df4635ee5c1 Mon Sep 17 00:00:00 2001 From: logicog Date: Mon, 8 Sep 2025 08:14:24 +0200 Subject: [PATCH] Add MSTP port state registers for STP Each register holds the STP port state for one Forwarding ID (FID), of which there 16 can be used by the RTL8372. The mapping between FID and VLAN is done in the VLAN table. This allows the SoC to maintain 16 different MSTP states. In the register 2 bits per port are used to designate the following (R)STP states 00 disable, 01 blocking, 10 learning, 11 forwarding The STP listening state is not available. --- rtl837x_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl837x_regs.h b/rtl837x_regs.h index 326acb8..027d926 100644 --- a/rtl837x_regs.h +++ b/rtl837x_regs.h @@ -154,7 +154,7 @@ #define RTL8373_RLDP_TIMER 0x1074 #define RTL837X_RMA0_CONF 0x4ecc #define RTL837X_RMA_CONF 0x4f1c - +#define RTL837X_MSTP_STATES 0x5310 #ifdef REGDBG