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: 8904061 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5A50FBF29F for ; Thu, 21 Apr 2016 21:10:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 80C11202EC for ; Thu, 21 Apr 2016 21:10:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A21B620303 for ; Thu, 21 Apr 2016 21:10:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752726AbcDUVJr (ORCPT ); Thu, 21 Apr 2016 17:09:47 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34650 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751650AbcDUVJp (ORCPT ); Thu, 21 Apr 2016 17:09:45 -0400 Received: by mail-pa0-f48.google.com with SMTP id r5so29464433pag.1 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=IYkieu7/6A9H0F5JFqCx+jK1RWa+sGZ+9pTBJMPSPIPKNEfn9tDKThW60llQm79Gm3 avRZYhBI2HzofWQDunb/CA7XIBqBaQJuUcvxki94xAtIrag/5UcRA6JQFHNFLhBnSGjR 4X1YYfFOuoEpMAsR8yi7Od+VXwtDx/8s1j1jUWR1YKP4qzoobd6KmsBipfeuuIBiLRg/ P09e1F95xiaEtv5LlSnJf0NFbB6TONBAlrsJyl8LLHWee8Ch0vInceajRXStJx1mGB7F 37QWKkiaVNtfMt6/frQWeDyVajUcH7A46tbzOI+1RDE399nObOoIscYzfVRQjgbsfLCR oQ4w== X-Gm-Message-State: AOPr4FWALY28f/Gojibd7JIrMz6cZgWi86rEAGtzYYIPUXUs/UiBpx7/yV7Pla94NYU7xF0W 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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 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 Tested-by: John Stultz --- drivers/net/wireless/ath/wcn36xx/smd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */