immortalwrt/target/linux/ath79
Chuanhong Guo 566f57591d
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-17 18:38:35 +08:00
..
base-files kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3375) 2020-02-29 16:28:07 +08:00
dts ath79: wndr3700 series: fix wifi range & throughput 2020-06-11 11:59:39 +08:00
files kernel: Update kernel 4.19 to version 4.19.131 2020-07-05 12:53:46 +08:00
generic ath79: fix rssi-low LED for My Net Range Extender 2020-10-12 17:31:04 +08:00
image build: image: move IMAGE_SIZE to image.mk 2020-09-21 20:00:35 +08:00
nand kernel: bump to 4.14.169, 4.19.101 (#2963) 2020-02-06 21:45:40 +08:00
patches-4.14 ath79: ar8216: make switch register access atomic 2020-10-17 18:38:35 +08:00
patches-4.19 kernel: bump 4.19 to 4.19.149 2020-10-01 21:53:50 +08:00
tiny kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3375) 2020-02-29 16:28:07 +08:00
config-4.14 ath79: update upsteam 2019-12-02 05:55:49 -08:00
config-4.19 kernel: bump to 4.9.214, 4.14.171, 4.19.106 (#3375) 2020-02-29 16:28:07 +08:00
Makefile ath79: update upsteam 2019-12-02 05:55:49 -08:00
modules.mk Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00