summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-07-14 14:05:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-07-14 14:05:12 +0000
commit8d5d96e8338d436d6e46925932b687fa875a072a (patch)
tree2f29408c0b63117563142f9aa9fb8e7c9fd88cf4 /target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch
parentd1238718c23a818b1be2fca068974d8fb916a599 (diff)
downloadmtk-20170518-8d5d96e8338d436d6e46925932b687fa875a072a.zip
mtk-20170518-8d5d96e8338d436d6e46925932b687fa875a072a.tar.gz
mtk-20170518-8d5d96e8338d436d6e46925932b687fa875a072a.tar.bz2
ar71xx: remove linux 3.8
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37290
Diffstat (limited to 'target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch')
-rw-r--r--target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch b/target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch
deleted file mode 100644
index e0821a7..0000000
--- a/target/linux/ar71xx/patches-3.8/213-MIPS-ath79-fix-ar933x-wmac-reset.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- a/arch/mips/ath79/dev-wmac.c
-+++ b/arch/mips/ath79/dev-wmac.c
-@@ -62,10 +62,27 @@ static void __init ar913x_wmac_setup(voi
-
- static int ar933x_wmac_reset(void)
- {
-+ int retries = 20;
-+
- ath79_device_reset_set(AR933X_RESET_WMAC);
- ath79_device_reset_clear(AR933X_RESET_WMAC);
-
-- return 0;
-+ while (1) {
-+ u32 bootstrap;
-+
-+ bootstrap = ath79_reset_rr(AR933X_RESET_REG_BOOTSTRAP);
-+ if ((bootstrap & AR933X_BOOTSTRAP_EEPBUSY) == 0)
-+ return 0;
-+
-+ if (retries-- == 0)
-+ break;
-+
-+ udelay(10000);
-+ retries++;
-+ }
-+
-+ pr_err("ar933x: WMAC reset timed out");
-+ return -ETIMEDOUT;
- }
-
- static int ar933x_r1_get_wmac_revision(void)