openwrt/target/linux
Chuanhong Guo e9cd545d2c 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>
Signed-off-by: maurerr <mariusd84@gmail.com>
2021-09-01 08:07:03 +00:00
..
apm821xx treewide: remove empty default cases 2021-09-01 08:07:00 +00:00
arc770 arc770: drop support for kernel 4.14 2021-09-01 08:06:56 +00:00
archs38 treewide: use wpad-basic-wolfssl as default 2021-09-01 08:06:52 +00:00
armvirt kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2021-09-01 08:06:53 +00:00
at91 at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget 2021-09-01 08:06:54 +00:00
ath25 ath25: fix preinit Ethernet port configuration 2021-09-01 08:06:58 +00:00
ath79 ath79: ar8216: make switch register access atomic 2021-09-01 08:07:03 +00:00
bcm27xx kernel: bump 5.4 to 5.4.67 2021-09-01 08:07:01 +00:00
bcm47xx kernel: bump 5.4 to 5.4.64 2021-09-01 08:06:58 +00:00
bcm53xx bcm53xx: add Cisco Meraki MR32 2021-09-01 08:07:01 +00:00
bcm63xx kernel: bump 5.4 to 5.4.67 2021-09-01 08:07:01 +00:00
gemini gemini: Bring up DSA switches 2021-09-01 08:07:01 +00:00
generic kernel: bump 5.4 to 5.4.68 2021-09-01 08:07:02 +00:00
imx6 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
ipq40xx ipq40xx: tidy up device recipe for Edgecore OAP100 2021-09-01 08:07:02 +00:00
ipq806x ipq806x: fix support of Edgecore ECW5410 support 2021-09-01 08:07:00 +00:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
kirkwood target: update SPDX license names 2021-09-01 08:07:01 +00:00
lantiq kernel: bump 5.4 to 5.4.67 2021-09-01 08:07:01 +00:00
layerscape kernel: bump 5.4 to 5.4.67 2021-09-01 08:07:01 +00:00
malta kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2021-09-01 08:06:53 +00:00
mediatek kernel: bump 5.4 to 5.4.67 2021-09-01 08:07:01 +00:00
mpc85xx target: update SPDX license names 2021-09-01 08:07:01 +00:00
mvebu target: update SPDX license names 2021-09-01 08:07:01 +00:00
mxs treewide: make dependency on kmod-usb-net selective 2021-09-01 08:06:49 +00:00
octeon octeon: add support for Itus Shield Router 2021-09-01 08:06:51 +00:00
octeontx kernel: bump 5.4 to 5.4.60 2021-09-01 08:06:53 +00:00
omap treewide: use wpad-basic-wolfssl as default 2021-09-01 08:06:52 +00:00
oxnas target: update SPDX license names 2021-09-01 08:07:01 +00:00
pistachio pistachio: drop support for kernel 4.14 2021-09-01 08:06:56 +00:00
ramips ramips: merge ethernet setup for RT-AC51U/RT-AC54U 2021-09-01 08:07:02 +00:00
rockchip rockchip: rk3328: add compatible to NanoPi R2S ethernet PHY 2021-09-01 08:07:02 +00:00
rtl838x target: update SPDX license names 2021-09-01 08:07:01 +00:00
sunxi treewide: use wpad-basic-wolfssl as default 2021-09-01 08:06:52 +00:00
tegra treewide: use wpad-basic-wolfssl as default 2021-09-01 08:06:52 +00:00
uml uml: update to linux 5.4 2021-09-01 08:06:52 +00:00
x86 kernel: bump 5.4 to 5.4.63 2021-09-01 08:06:57 +00:00
zynq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00