immortalwrt/target/linux/ath79
Chuanhong Guo b21bea7b1b ath79: ar8216: make switch register access atomic
reg accesses on integrated ar8229 sometimes fails. As a result, phy read
got incorrect port status and wan link goes down and up mysteriously.
After comparing ar8216 with the old driver, these local_irq_save/restore
calls are the only meaningful differences I could find and it does fix
the issue.
The same changes were added in svn r26856 by Gabor Juhos:
ar71xx: ag71xx: make switch register access atomic

As I can't find the underlying problem either, this hack is broght
back to fix the unstable link issue.
This hack is only suitable for ath79 mdio and may easily break the
driver on other platform. Limit it to ath79-only as a target patch.

Fixes: FS#2216
Fixes: FS#3226
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(cherry picked from commit 86fdc8abed)
2020-10-11 11:57:55 +08:00
..
base-files ath79: fix rssi-low LED for My Net Range Extender 2020-09-28 13:33:28 +02:00
dts ath79: add support for TP-Link TL-WR710N v2.1 2020-08-24 19:56:10 +02:00
files ar71xx/ath79: ag71xx: dont fetch the same var again 2019-08-27 10:31:06 +02:00
generic ath79: add support for jjPlus JA76PF2 2019-03-18 20:43:09 +01:00
image ath79: add support for TP-Link TL-WR710N v2.1 2020-08-24 19:56:10 +02:00
nand treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
patches-4.14 ath79: ar8216: make switch register access atomic 2020-10-11 11:57:55 +08:00
tiny treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
config-4.14 ath79: add support for D-Link DIR-859 A1 2018-12-30 20:08:13 +01:00
Makefile Revert "ath79: make target source-only" 2019-08-14 21:27:11 +02:00
modules.mk ath79: add new OF only target for QCA MIPS silicon 2018-05-07 08:06:51 +02:00