diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2020-09-21 14:57:44 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-10-11 11:57:55 +0800 |
commit | b21bea7b1b92abefad53bcfe509b7e44dd488c79 (patch) | |
tree | 36a305d5024f7a01173f90bfad1f6aa3b969c8ee /target/linux/ath79/patches-4.14/0007-irqchip-irq-ath79-intc-add-irq-cascade-driver-for-QC.patch | |
parent | 891022918d55b565b49b7ecafc4ebf8a66461a13 (diff) | |
download | upstream-b21bea7b1b92abefad53bcfe509b7e44dd488c79.tar.gz upstream-b21bea7b1b92abefad53bcfe509b7e44dd488c79.tar.bz2 upstream-b21bea7b1b92abefad53bcfe509b7e44dd488c79.zip |
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 86fdc8abed5992a74078b000b5ff9da723b6f46b)
Diffstat (limited to 'target/linux/ath79/patches-4.14/0007-irqchip-irq-ath79-intc-add-irq-cascade-driver-for-QC.patch')
0 files changed, 0 insertions, 0 deletions