Skip to content

Commit

Permalink
MIPS: ath79: fix AR933X WMAC reset code
Browse files Browse the repository at this point in the history
The current code puts the built-in WMAC device of the
AR933X SoCs into reset instead of starting it. This
causes a hard lock on AR933X based boards when the
wireless driver tries to access the device.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: stable@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3484/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed Apr 27, 2012
1 parent 05c8be0 commit de14ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/ath79/dev-wmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ static void __init ar913x_wmac_setup(void)

static int ar933x_wmac_reset(void)
{
ath79_device_reset_clear(AR933X_RESET_WMAC);
ath79_device_reset_set(AR933X_RESET_WMAC);
ath79_device_reset_clear(AR933X_RESET_WMAC);

return 0;
}
Expand Down

0 comments on commit de14ca6

Please sign in to comment.