From patchwork Thu Apr 21 21:09:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 66412 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp371415qge; Thu, 21 Apr 2016 14:09:49 -0700 (PDT) X-Received: by 10.66.118.166 with SMTP id kn6mr23269203pab.33.1461272989490; Thu, 21 Apr 2016 14:09:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gj3si3096716pac.243.2016.04.21.14.09.49; Thu, 21 Apr 2016 14:09:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753075AbcDUVJs (ORCPT + 29 others); Thu, 21 Apr 2016 17:09:48 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36458 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbcDUVJp (ORCPT ); Thu, 21 Apr 2016 17:09:45 -0400 Received: by mail-pa0-f42.google.com with SMTP id er2so32526156pad.3 for ; Thu, 21 Apr 2016 14:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=x8YuGxxzu+Z96Ybdigj3sDtCjI53v4Nm+0FO+5wpnak=; b=ZJFr5pO6yp8ARyBDxj+2sperqq5siLtBt7IfSqDvtF5KYTsX2NUQRMo24qashEn9fM fiQERE3ZKW8lcVo4t/M1/fhkF7weuatA5fWUZTdKcSghJeqVqTO+KFjCEv/eb6dEJbKY Pa5SVZP4uncsA+onj+RVKxOi3TPkf+zW0WEgg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=x8YuGxxzu+Z96Ybdigj3sDtCjI53v4Nm+0FO+5wpnak=; b=KpHQXvGwFiOjFhyrruBxICYC2/JjSjQetAzfioF7OsLKzGPmR+vigbIbdyP/zokq3B PO5cXE70xMBEOee3U6M6RL66WXGCK/B4qQbcgPQTTkBwzqu9uqPbR4RJMGkYZWNzUcpP i/PoxCN3H8BcCtdwdyC9cDI7RhYqsmH7c2ReEg9Ddg+FdCNaomxtJI0qKSMFziPoZMPm hs0QD0NTpX22WXnmb0ygKU9NmQ/fGOYjscqBwFpFkVj+QAeLtyHfSqzIrLoVd6+wAlu3 qC23/REAQvGwyo1cC6AEpktmVga+QMS2bWFa2XfRSZYLowmwr4OiZwUhZPBasDd4AV7/ a1rg== X-Gm-Message-State: AOPr4FX7Su8zd01Wk8UP2Des0rkboqEs79T+eHtSW6509zdu8MdGxSjq94yIsNmvsQkzcy0t X-Received: by 10.66.184.40 with SMTP id er8mr23728039pac.134.1461272984951; Thu, 21 Apr 2016 14:09:44 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id wy7sm4352324pab.5.2016.04.21.14.09.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 14:09:44 -0700 (PDT) From: Bjorn Andersson To: Eugene Krasnikov , Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, John Stultz Subject: [PATCH] wcn36xx: Set SMD timeout to 10 seconds Date: Thu, 21 Apr 2016 14:09:42 -0700 Message-Id: <1461272982-7233-1-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After booting the wireless subsystem and uploading the NV blob to the WCNSS_CTRL service the remote continues to do things and will not start servicing wlan-requests for another 2-5 seconds (measured). The downstream code does not have any special handling for this case, but has a timeout of 10 seconds for the communication layer. By extending the wcn36xx timeout to match this we follows the same flow for the boot procedure and can successfully configure WiFi as wlan0 is registered. Signed-off-by: Bjorn Andersson --- drivers/net/wireless/ath/wcn36xx/smd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.5.0 Tested-by: John Stultz diff --git a/drivers/net/wireless/ath/wcn36xx/smd.h b/drivers/net/wireless/ath/wcn36xx/smd.h index e6aadd273c46..6310560901f0 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.h +++ b/drivers/net/wireless/ath/wcn36xx/smd.h @@ -24,7 +24,7 @@ #define WCN36XX_HAL_BUF_SIZE 4096 -#define HAL_MSG_TIMEOUT 500 +#define HAL_MSG_TIMEOUT 10000 #define WCN36XX_SMSM_WLAN_TX_ENABLE 0x00000400 #define WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY 0x00000200 /* The PNO version info be contained in the rsp msg */