From patchwork Tue Jun 20 00:32:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9798303 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 5261B60328 for ; Tue, 20 Jun 2017 00:32:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 474B927031 for ; Tue, 20 Jun 2017 00:32:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C25B274D2; Tue, 20 Jun 2017 00:32:45 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 C70ED27031 for ; Tue, 20 Jun 2017 00:32:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752666AbdFTAca (ORCPT ); Mon, 19 Jun 2017 20:32:30 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:36641 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752643AbdFTAc2 (ORCPT ); Mon, 19 Jun 2017 20:32:28 -0400 Received: by mail-ot0-f196.google.com with SMTP id r67so13317892ota.3 for ; Mon, 19 Jun 2017 17:32:28 -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=PdvSCPGVAPex9U8NJDoxA+RPRFnoYFrWBYZCMfLpwgS2gNLp9uri6I9mgYqVuKpsTK gZkBJmTc7G/fgw00cfhKMwGXfR0DQjxTevg1lRTknsD7gLqRVw1Ybz0fEC8Buh0NFSlX 93XEr2bp5gf/jseaOaJnQZKpiBlSMxSmNa3y2+BcDuMpPduSDzmmJ01oVRGRQ/H6CA/6 zgr+Wgv907eYxm9SOcqJw7DIJvppouD0bkUn59uIi8niriHqK+HOhs90vleEXzMaNL43 QmfgpanVa8UP7H31YvbstJNi3Qw5DonljqZWH4k24vn5OHdINk5RblQrkVw8xd1Ry/El /Vpg== 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=MnUwbtpFvmzKxu5kZ5j6RvKIxXRjZD3nfbhIF8hCC2yCiaGMnKTuDAOTIo5KnL7IDP ah+JGYuQP4iS85DlxD38oEYLMsGE/ZZgjtnZ0ElwBXbT8PC8JPQEXlFX8my0TQkMpNwh nHuQmjv3oto3oGOEcVwT6uB96UbKmEIyId9qXsntxUBuGyAQZPMLo4kh5D+pnGgAbqns VEmccdM7DG5ABeJrbWdrC86AIyjQQkkV3VuiyE7XuXxlta70DaO9ZVbWXuQQnzPQmiaf 9kdycbgoszlFlOsouTeeEOK2nTZWjpSGSS2JpMhYodYZTdiztis0qoep0NewhZoUBeie zEnw== X-Gm-Message-State: AKS2vOx+dRcQ4bx1mznVEBpS25mhqD4edXgOxBh6PXvIRGMdlwi+zLau tecS5r/Z3Y+SshWh X-Received: by 10.157.43.55 with SMTP id o52mr11831787otb.209.1497918748116; Mon, 19 Jun 2017 17:32:28 -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 198sm5841023oii.16.2017.06.19.17.32.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 17:32:27 -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 03/10] rtlwifi: Modify power mode parameters of 8723be and 8821ae. Date: Mon, 19 Jun 2017 19:32:11 -0500 Message-Id: <20170620003218.17010-4-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170620003218.17010-1-Larry.Finger@lwfinger.net> References: <20170620003218.17010-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