linux-yocto/drivers/net/dsa/microchip
Tristram Ha d5b0053b93 net: dsa: microchip: fix initial port flush problem
[ Upstream commit ad53f5f54f ]

The very first flush in any port will flush all learned addresses in all
ports.  This can be observed by unplugging the cable from one port while
additional ports are connected and dumping the fdb entries.

This problem is caused by the initially wrong value programmed to the
REG_SW_LUE_CTRL_1 register.  Setting SW_FLUSH_STP_TABLE and
SW_FLUSH_MSTP_TABLE bits does not have an immediate effect.  It is when
ksz9477_flush_dyn_mac_table() is called then the SW_FLUSH_STP_TABLE bit
takes effect and flushes all learned entries.  After that call both bits
are reset and so the next port flush will not cause such problem again.

Fixes: b987e98e50 ("dsa: add DSA switch driver for Microchip KSZ9477")
Signed-off-by: Tristram Ha <tristram.ha@microchip.com>
Link: https://patch.msgid.link/1718756202-2731-1-git-send-email-Tristram.Ha@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:08:27 +02:00
..
Kconfig
ksz_common.c net: dsa: microchip: call phy_remove_link_mode during probe 2020-07-29 10:18:33 +02:00
ksz_common.h net: dsa: microchip: Fix ksz_read64() 2021-08-18 08:56:59 +02:00
ksz8795_reg.h
ksz8795_spi.c net: dsa: microchip: add spi_device_id tables 2022-04-15 14:17:56 +02:00
ksz8795.c Revert "net: dsa: microchip: set the correct number of ports" 2020-09-09 19:12:32 +02:00
ksz9477_i2c.c
ksz9477_reg.h
ksz9477_spi.c net: dsa: microchip: add spi_device_id tables 2022-04-15 14:17:56 +02:00
ksz9477.c net: dsa: microchip: fix initial port flush problem 2024-07-05 09:08:27 +02:00
Makefile