pxa: remove 2.6.37 support
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 003-MIPS-ath79-fix-AR933X-WMAC-reset-code.patch
1 From 51233d66e030239f99755b2983753eff9b748365 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Wed, 14 Mar 2012 10:28:35 +0100
4 Subject: [PATCH 04/47] MIPS: ath79: fix AR933X WMAC reset code
5
6 The current code puts the built-in WMAC device of the
7 AR933X SoCs into reset instead of starting it. This
8 causes a hard lock on AR933X based boards when the
9 wireless driver tries to access the device.
10
11 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
12 Cc: stable@vger.kernel.org
13 Cc: linux-mips@linux-mips.org
14 Patchwork: https://patchwork.linux-mips.org/patch/3484/
15 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 ---
17 arch/mips/ath79/dev-wmac.c | 2 +-
18 1 files changed, 1 insertions(+), 1 deletions(-)
19
20 --- a/arch/mips/ath79/dev-wmac.c
21 +++ b/arch/mips/ath79/dev-wmac.c
22 @@ -58,8 +58,8 @@ static void __init ar913x_wmac_setup(voi
23
24 static int ar933x_wmac_reset(void)
25 {
26 - ath79_device_reset_clear(AR933X_RESET_WMAC);
27 ath79_device_reset_set(AR933X_RESET_WMAC);
28 + ath79_device_reset_clear(AR933X_RESET_WMAC);
29
30 return 0;
31 }