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
..
apm821xx kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
ar7
ar71xx kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
arc770
archs38
armvirt
at91
ath25
ath79 kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
bcm27xx kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
bcm53xx
brcm47xx
brcm63xx bcm63xx: sprom: override the PCI device ID 2021-02-09 21:46:49 +08:00
cns3xxx
gemini
generic kernel: backport fix for flexcan bug 2021-04-14 23:15:44 +08:00
imx6
ipq40xx kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
ipq806x kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
ixp4xx
kirkwood
lantiq lantiq: fritz7320: enable USB power supply 2021-02-18 17:17:22 +08:00
layerscape kernel: bump to 4.9.264, 4.14.228, 4.19.184 2021-04-04 20:08:14 +08:00
malta
mediatek kernel: bump to 4.9.265, 4.14.229, 4.19.185 2021-04-10 17:30:47 +08:00
mpc85xx
mvebu kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
mxs
octeon
octeontx
omap
orion
oxnas
pistachio
ramips ramips: mt7530 swconfig: fix race condition in register access 2021-04-15 23:18:31 +08:00
rb532
samsung kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
sunxi sunxi/h5: set max cpu freq to 1296MHz 2021-04-08 23:27:46 +08:00
tegra
uml
x86 kernel: bump to 4.9.262, 4.14.227, 4.19.183 2021-03-27 01:15:23 +08:00
zynq
Makefile