[PATCH net v4 3/7] net: dsa: mt7530: fix trapping frames on non-MT7621 SoC MT7530 switch
Vladimir Oltean
olteanv at gmail.com
Wed Jun 14 13:13:36 PDT 2023
On Mon, Jun 12, 2023 at 10:59:41AM +0300, arinc9.unal at gmail.com wrote:
> From: Arınç ÜNAL <arinc.unal at arinc9.com>
>
> The check for setting the CPU_PORT bits must include the non-MT7621 SoC
> MT7530 switch variants to trap frames. Expand the check to include them.
>
> Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
> Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
> ---
> drivers/net/dsa/mt7530.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
> index ef8879087932..2bde2fdb5fba 100644
> --- a/drivers/net/dsa/mt7530.c
> +++ b/drivers/net/dsa/mt7530.c
> @@ -3073,7 +3073,7 @@ mt753x_master_state_change(struct dsa_switch *ds,
> * the numerically smallest CPU port which is affine to the DSA conduit
> * interface that is up.
> */
> - if (priv->id != ID_MT7621)
> + if (priv->id != ID_MT7530 && priv->id != ID_MT7621)
> return;
This patch and 2/7 should probably be reversed, since 2/7 is not going to net.
>
> if (operational)
> --
> 2.39.2
>
More information about the linux-arm-kernel
mailing list