Files
openwrt/target/linux
DENG Qingfang 718e97c5c8 ramips: mt7530 swconfig: fix race condition in register access
[ Upstream commit f99c9cd9c4 ]

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 f99c9cd9c4)
2021-05-02 14:43:09 +02:00
..
2021-04-09 15:43:38 +02:00
2021-03-10 13:55:56 +01:00
2021-01-12 23:55:26 +01:00
2021-03-10 13:55:56 +01:00
2021-01-12 23:55:26 +01:00
2021-01-12 23:55:26 +01:00
2021-02-26 10:11:21 +01:00
2020-12-16 22:23:52 +01:00
2019-11-29 10:00:35 +01:00
2021-04-30 10:56:39 +02:00
2019-10-08 12:45:13 +02:00
2021-04-09 15:43:38 +02:00
2021-01-12 23:55:26 +01:00
2021-04-30 10:56:39 +02:00
2021-04-09 15:43:38 +02:00
2020-11-16 09:35:05 +01:00
2021-04-09 15:43:38 +02:00
2020-05-04 21:05:21 +02:00
2020-11-16 09:35:05 +01:00
2020-04-16 13:23:52 +02:00
2020-11-16 09:35:05 +01:00
2020-11-16 09:35:05 +01:00
2021-04-09 15:43:38 +02:00
2021-04-09 15:43:38 +02:00
2020-04-18 00:18:13 +02:00
2020-10-14 17:18:54 +02:00
2021-03-10 13:55:56 +01:00