From patchwork Wed Jun 21 17:15:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9802345 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CCE2760329 for ; Wed, 21 Jun 2017 17:17:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 726CB2853C for ; Wed, 21 Jun 2017 17:16:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 660C3285E8; Wed, 21 Jun 2017 17:16:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5C1D2853C for ; Wed, 21 Jun 2017 17:16:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752170AbdFURQu (ORCPT ); Wed, 21 Jun 2017 13:16:50 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:35862 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155AbdFURPr (ORCPT ); Wed, 21 Jun 2017 13:15:47 -0400 Received: by mail-ot0-f194.google.com with SMTP id r67so20191701ota.3 for ; Wed, 21 Jun 2017 10:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ozDwNb+bW43haDa6Nli0rJQ6TFrVdyV8QxesuAx+Yes=; b=hHQ1r2Zu0twpiuMWY/BLVzY4sIZBAOYFyL9WV+4fKHXbumcKyH2aGDSt4n02vZ+XRD APID2og1A8kfg81r7b+QENq49Es2PkwHjLq2bdYN5A/um47YYVKMuD/RjnhgkodQm9fB OaF7TV+/dVLnTelptmVE/efvcfaeDmSchq/GqASeBGZO2Uf3CaTThWaxZU5S04NDNKcv SwxhRGPqRuDPOiuZ3FZ78BZW0CLs+D1n80Swsiwt6mZjOPAahlaeZvL+AI+SktNV//vC E7xa9E+JtA0z2gPY/O46jA3L4brNjjXI2WSjh6twNpSs3h/5HtQVK+g9RTmM41uELEgn 5kzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ozDwNb+bW43haDa6Nli0rJQ6TFrVdyV8QxesuAx+Yes=; b=LqXnjBC5T3YmnV0qYiF/4yDBQJ1et+sw2fVMXe6dRLvDlmLvtYe3zb7ZNFHM2qa4Yb ajng0irD2yHYU5osqI28LelYiTo0DO/ZTjJoqA4vrgklkOnfJUS03lwlluoMwQZCYJQP O3vMBFReC3tg1Qt8FLTqtRfNmSke6nxdMC2MCGOqjQ+IhV8maCJJSiNymQrcz4IDIMOn f4stap6VaOOTQswk7u3EECIr0+C/R/LA2BKKCoanrMryQiDsXy5pG2ajHImaRKqH1aA+ CBye9riF3NwyzltFgSSqsl6e0ikwddOQFACEv5JD39Y13FdW8f1iqe4+UxYhI/GFgFpG qS1Q== X-Gm-Message-State: AKS2vOzthztM5UJrYmzUIYL1MVCChVaGW8a4V94zMRUmuJdFrLadtRBN IXdLblZX/ED4mnGx X-Received: by 10.157.56.189 with SMTP id p58mr21448190otc.122.1498065347113; Wed, 21 Jun 2017 10:15:47 -0700 (PDT) Received: from linux-4v1g.suse (cpe-24-31-249-175.kc.res.rr.com. [24.31.249.175]) by smtp.gmail.com with ESMTPSA id i38sm6785237ota.3.2017.06.21.10.15.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Jun 2017 10:15:46 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Ping-Ke Shih , Larry Finger , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH v2 3/8] rtlwifi: Modify power mode parameters of 8723be and 8821ae. Date: Wed, 21 Jun 2017 12:15:33 -0500 Message-Id: <20170621171538.4462-4-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170621171538.4462-1-Larry.Finger@lwfinger.net> References: <20170621171538.4462-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ping-Ke Shih Change the parameters suggested by FW. awake int: 2 smart_ps: 2 or 0 ps_mode: 2 (MAX -- every DTIM) Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c | 4 ++-- drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c index 8c0ac96b5430..f9d10f1e7cf8 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c @@ -155,8 +155,8 @@ int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) rtlpriv->cfg->mod_params->disable_watchdog; if (rtlpriv->cfg->mod_params->disable_watchdog) pr_info("watchdog disabled\n"); - rtlpriv->psc.reg_fwctrl_lps = 3; - rtlpriv->psc.reg_max_lps_awakeintvl = 5; + rtlpriv->psc.reg_fwctrl_lps = 2; + rtlpriv->psc.reg_max_lps_awakeintvl = 2; /* for ASPM, you can close aspm through * set const_support_pciaspm = 0 */ diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c index abaf34cb1433..d71d2776ca03 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/sw.c @@ -172,8 +172,8 @@ int rtl8821ae_init_sw_vars(struct ieee80211_hw *hw) rtlpriv->cfg->mod_params->disable_watchdog; if (rtlpriv->cfg->mod_params->disable_watchdog) pr_info("watchdog disabled\n"); - rtlpriv->psc.reg_fwctrl_lps = 3; - rtlpriv->psc.reg_max_lps_awakeintvl = 5; + rtlpriv->psc.reg_fwctrl_lps = 2; + rtlpriv->psc.reg_max_lps_awakeintvl = 2; /* for ASPM, you can close aspm through * set const_support_pciaspm = 0