Thread (115 messages) 115 messages, 7 authors, 2013-03-18

[ 032/100] mwifiex: correct sleep delay counter

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2013-03-12 23:16:16
Also in: lkml

3.8-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Avinash Patil <redacted>

commit 3e7a4ff7c5b6423ddb644df9c41b8b6d2fb79d30 upstream.

Maximum delay for waking up card is 50 ms. Because of typo in
counter, this delay goes to 500ms. This patch fixes the bug.

Signed-off-by: Avinash Patil <redacted>
Signed-off-by: Amitkumar Karwar <redacted>
Signed-off-by: Yogesh Ashok Powar <redacted>
Signed-off-by: Bing Zhao <redacted>
Signed-off-by: John W. Linville <redacted>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/net/wireless/mwifiex/pcie.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/net/wireless/mwifiex/pcie.c
+++ b/drivers/net/wireless/mwifiex/pcie.c
@@ -291,7 +291,7 @@ static int mwifiex_pm_wakeup_card(struct
 		i++;
 		usleep_range(10, 20);
 		/* 50ms max wait */
-		if (i == 50000)
+		if (i == 5000)
 			break;
 	}
 

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help