From patchwork Mon Jan 26 16:43:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 5711281 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2D2249F333 for ; Mon, 26 Jan 2015 16:43:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C017200FF for ; Mon, 26 Jan 2015 16:43:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58E77200C1 for ; Mon, 26 Jan 2015 16:43:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755970AbbAZQn1 (ORCPT ); Mon, 26 Jan 2015 11:43:27 -0500 Received: from sabertooth02.qualcomm.com ([65.197.215.38]:47175 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755924AbbAZQn1 (ORCPT ); Mon, 26 Jan 2015 11:43:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1422290606; x=1453826606; h=from:to:cc:subject:date:message-id:mime-version; bh=xpxnz742/0LeV8pAlUfyM3RY8apMjllPkGFutEnXdn4=; b=St8F6WqwFnEHc0JJlp+vl+sVsrIvrtRPQgO5TwdvK9Oz8smo6LlNAW0V 9jon72+SyKQj3sjDGGJ9UptjZ2mdZ81tv12wM0R88Nm6BjnWycbYenuTo i4aEOjlCIe4pT4V1gg5KS5LiNnSFw+d7mlfE7cSmMN35HuuD+BFC/VR2E Q=; X-IronPort-AV: E=McAfee;i="5600,1067,7692"; a="82921147" Received: from ironmsg02-lv.qualcomm.com ([10.47.202.183]) by sabertooth02.qualcomm.com with ESMTP; 26 Jan 2015 08:43:25 -0800 X-IronPort-AV: E=Sophos;i="5.09,469,1418112000"; d="scan'208";a="31580951" Received: from nasanexhc07.na.qualcomm.com ([172.30.39.190]) by ironmsg02-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 26 Jan 2015 08:43:25 -0800 Received: from aphydexm01b.ap.qualcomm.com (10.252.127.11) by nasanexhc07.na.qualcomm.com (172.30.39.190) with Microsoft SMTP Server (TLS) id 14.3.181.6; Mon, 26 Jan 2015 08:43:24 -0800 Received: from qcmail1.qualcomm.com (10.80.80.8) by aphydexm01b.ap.qualcomm.com (10.252.127.11) with Microsoft SMTP Server (TLS) id 15.0.995.29; Mon, 26 Jan 2015 08:43:15 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Mon, 26 Jan 2015 22:13:07 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH] ath10k: fix target wakeup timeout Date: Mon, 26 Jan 2015 22:13:06 +0530 Message-ID: <1422290586-10955-1-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 2.2.2 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01b.ap.qualcomm.com (10.252.127.11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP During drv_start/drv_stop stress testing in ARM platform, sometimes target is taking more that 5ms to wake up. Similar behaviour also noted during driver load and unload iterations. On such cases, the wakup duration lies between 5-6ms. Hence increasing pci wakup timeout 10ms to be more safer. With this changes, able to complete power down/up >100 iterations without any issues. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath10k/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h index ce4a1ef..bddf543 100644 --- a/drivers/net/wireless/ath/ath10k/pci.h +++ b/drivers/net/wireless/ath/ath10k/pci.h @@ -194,7 +194,7 @@ static inline struct ath10k_pci *ath10k_pci_priv(struct ath10k *ar) #define ATH10K_PCI_RX_POST_RETRY_MS 50 #define ATH_PCI_RESET_WAIT_MAX 10 /* ms */ -#define PCIE_WAKE_TIMEOUT 5000 /* 5ms */ +#define PCIE_WAKE_TIMEOUT 10000 /* 10ms */ #define BAR_NUM 0