mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-02 12:52:57 +00:00
ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac reset
Found-by: Coverity Scan #1329327 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
parent
1025941662
commit
296312fca1
@ -1,6 +1,6 @@
|
|||||||
--- a/arch/mips/ath79/dev-wmac.c
|
--- a/arch/mips/ath79/dev-wmac.c
|
||||||
+++ b/arch/mips/ath79/dev-wmac.c
|
+++ b/arch/mips/ath79/dev-wmac.c
|
||||||
@@ -62,10 +62,27 @@ static void __init ar913x_wmac_setup(voi
|
@@ -61,10 +61,27 @@ static void __init ar913x_wmac_setup(voi
|
||||||
|
|
||||||
static int ar933x_wmac_reset(void)
|
static int ar933x_wmac_reset(void)
|
||||||
{
|
{
|
||||||
@ -21,7 +21,6 @@
|
|||||||
+ break;
|
+ break;
|
||||||
+
|
+
|
||||||
+ udelay(10000);
|
+ udelay(10000);
|
||||||
+ retries++;
|
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ pr_err("ar933x: WMAC reset timed out");
|
+ pr_err("ar933x: WMAC reset timed out");
|
||||||
|
Loading…
Reference in New Issue
Block a user