Commit 2c606d1
net: dsa: mt7530: fix port mirroring for MT7988 SoC switch
The "MT7988A Wi-Fi 7 Generation Router Platform: Datasheet (Open Version)
v0.1" document shows bits 16 to 18 as the MIRROR_PORT field of the CPU
forward control register. Currently, the MT7530 DSA subdriver configures
bits 0 to 2 of the CPU forward control register which breaks the port
mirroring feature for the MT7988 SoC switch.
Fix this by using the MT7531_MIRROR_PORT_GET() and MT7531_MIRROR_PORT_SET()
macros which utilise the correct bits.
Fixes: 110c18b ("net: dsa: mt7530: introduce driver for MT7988 built-in switch")
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent d59cf04 commit 2c606d1
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
1886 | | - | |
1887 | | - | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
1888 | 1889 | | |
1889 | 1890 | | |
1890 | 1891 | | |
1891 | 1892 | | |
1892 | | - | |
1893 | | - | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
1894 | 1896 | | |
1895 | 1897 | | |
1896 | 1898 | | |
| |||
0 commit comments