aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/patches-5.4/930-ar8216-make-reg-access-atomic.patch
Commit message (Collapse)AuthorAgeFilesLines
* ath79: ar8216: make switch register access atomicChuanhong Guo2020-09-301-0/+59
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>