[source] ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac reset

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 11 05:27:46 PDT 2017


lynxis pushed a commit to source.git, branch master:
https://git.lede-project.org/296312fca13a4cab1d157e0474e1f0bcca6adf5c

commit 296312fca13a4cab1d157e0474e1f0bcca6adf5c
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Sun Jun 11 13:27:20 2017 +0200

    ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac reset
    
    Found-by: Coverity Scan #1329327
    Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
 .../ar71xx/patches-4.4/200-MIPS-ath79-fix-ar933x-wmac-reset.patch      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/patches-4.4/200-MIPS-ath79-fix-ar933x-wmac-reset.patch b/target/linux/ar71xx/patches-4.4/200-MIPS-ath79-fix-ar933x-wmac-reset.patch
index e0821a7..1a6b220 100644
--- a/target/linux/ar71xx/patches-4.4/200-MIPS-ath79-fix-ar933x-wmac-reset.patch
+++ b/target/linux/ar71xx/patches-4.4/200-MIPS-ath79-fix-ar933x-wmac-reset.patch
@@ -1,6 +1,6 @@
 --- 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
+@@ -61,10 +61,27 @@ static void __init ar913x_wmac_setup(voi
  
  static int ar933x_wmac_reset(void)
  {
@@ -21,7 +21,6 @@
 +			break;
 +
 +		udelay(10000);
-+		retries++;
 +	}
 +
 +	pr_err("ar933x: WMAC reset timed out");



More information about the lede-commits mailing list