mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
6552f31acd
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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
base-files/etc | ||
dts | ||
files/drivers | ||
image | ||
mt76x8 | ||
mt7620 | ||
mt7621 | ||
patches-5.4 | ||
rt288x | ||
rt305x | ||
rt3883 | ||
Makefile | ||
modules.mk |