From patchwork Tue Feb 26 00:01:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bing Zhao X-Patchwork-Id: 2183271 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2893C3FDF1 for ; Tue, 26 Feb 2013 00:02:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758662Ab3BZABz (ORCPT ); Mon, 25 Feb 2013 19:01:55 -0500 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:49563 "EHLO na3sys009aog113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754233Ab3BZABw (ORCPT ); Mon, 25 Feb 2013 19:01:52 -0500 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKUSv7bY2iDbl4zDJ/YrOjUrbPGFATrCHA@postini.com; Mon, 25 Feb 2013 16:01:52 PST Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 25 Feb 2013 16:01:39 -0800 Received: from localhost.localdomain (unknown [10.80.112.61]) by maili.marvell.com (Postfix) with ESMTP id 392184E51D; Mon, 25 Feb 2013 16:01:39 -0800 (PST) From: Bing Zhao To: linux-wireless@vger.kernel.org Cc: "John W. Linville" , Avinash Patil , Amitkumar Karwar , Yogesh Powar , Nishant Sarmukadam , Frank Huang , Bing Zhao Subject: [PATCH 3.9] mwifiex: correct sleep delay counter Date: Mon, 25 Feb 2013 16:01:34 -0800 Message-Id: <1361836894-24045-1-git-send-email-bzhao@marvell.com> X-Mailer: git-send-email 1.7.0.2 X-OriginalArrivalTime: 26 Feb 2013 00:01:39.0236 (UTC) FILETIME=[73743640:01CE13B4] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Avinash Patil Maximum delay for waking up card is 50 ms. Because of typo in counter, this delay goes to 500ms. This patch fixes the bug. Cc: # 3.2+ Signed-off-by: Avinash Patil Signed-off-by: Amitkumar Karwar Signed-off-by: Yogesh Ashok Powar Signed-off-by: Bing Zhao --- drivers/net/wireless/mwifiex/pcie.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/mwifiex/pcie.c b/drivers/net/wireless/mwifiex/pcie.c index 75a66b4..dd4d726 100644 --- a/drivers/net/wireless/mwifiex/pcie.c +++ b/drivers/net/wireless/mwifiex/pcie.c @@ -310,7 +310,7 @@ static int mwifiex_pm_wakeup_card(struct mwifiex_adapter *adapter) i++; usleep_range(10, 20); /* 50ms max wait */ - if (i == 50000) + if (i == 5000) break; }