Files
immortalwrt/target/linux
DENG Qingfang a5b9ff72cf ramips: mt7530 swconfig: fix race condition in register access
The mt7530_{r,w}32 operation over MDIO uses 3 mdiobus operations and
does not hold a lock, which causes a race condition when multiple
threads try to access a register, they may get unexpected results.

To avoid this, handle the MDIO lock manually, and use the unlocked
__mdiobus_{read,write} in the critical section.

This fixes the "Ghost VLAN" artifact[1] in MT7530/7621 when the VLAN
operation and the swconfig LED link status poll race between each other.

[1] https://forum.openwrt.org/t/mysterious-vlan-ids-on-mt7621-device/64495

Signed-off-by: DENG Qingfang <dqfext@gmail.com>
2021-04-15 23:18:31 +08:00
..
2020-09-30 20:08:29 +08:00
2019-08-19 22:26:19 +08:00
2019-08-19 22:26:19 +08:00
2020-02-11 17:26:30 +08:00
2021-01-30 20:09:14 +08:00
2020-03-19 17:50:48 +08:00
2019-08-19 22:26:19 +08:00
2020-11-08 03:24:12 +08:00
2020-05-03 19:32:54 +08:00
2020-11-08 03:24:12 +08:00
2019-08-19 22:26:19 +08:00
2020-10-31 01:29:00 +08:00
2019-08-19 22:26:19 +08:00