Received: by 10.213.65.68 with SMTP id h4csp917968imn; Tue, 27 Mar 2018 11:10:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx489Q0PysxRkyohOvfCEUN/Zv2+kYfwrFUx3nYpQjDRxynGApRX9H0GKDoztDaATpFpC7Dj/ X-Received: by 2002:a17:902:848e:: with SMTP id c14-v6mr334987plo.139.1522174214198; Tue, 27 Mar 2018 11:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522174214; cv=none; d=google.com; s=arc-20160816; b=ayR7qAl4GcIuHMVfmaDwekwvpzzHT5xQ8rnETc1FmmOM1H5fCJYl3NE0+VDVTfNYyc fpizYAJ/2y8HGBG5u7s2DvuNy5wMwISCrAQjCAID0tp2gcLg2ZZh23RVB8UHFislJ1Ld lbLmm0gG+AkIr/24NJmlx69NK2bXNOScpXq3quF5jl41wu2qUALGZrBV35PQ8JI2tkn4 okY+9d21geUmJEmCCuAH0JhHKG0mie77738fcLqqblEfnyw8/qGX+IwMZn+eulSl0RQj q0vjBEF0ABMMMXssh4bLp+TKUKPP78uMco6Ipf9P4CwPqyHyrQMqf8eBQQ/54G7mRa4X +wTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vxZTEl/0IbHtpYr+vTNxZF3pVJ6fx6Plao5XZLuvm8M=; b=tTAGtcjdCjsC+D4CUNcr2i5F9x9m+bhmLn+w8M11oCrXM7hhBypk9lCcgZuFZmgGqf W3WkhzpfzkfM8pYqmnes3pB0n0yND+qTgBY8FU36H+2sHaxzLO6I14PlkVK+ppEWhfgH RivGMiSCvX3qJbTVUETcNwtej+UcO5cuxOKLInlAHDbX3YtyMEb4QmtAsJWTT2hZBML1 6c6joASIGSCYtPZ0/e7XX6hwkUk/3Cvf37vZ5BZcN0k6dIvr7aYXHXgMC7pwQtl0lU3Q TpRpkvBHNPGSOo7o7h/vG6+qGfDHpMxImxag2OJ4tT9hSLZsA3OdT+eau27W0/9TJLhT kz9A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i72si1137149pgd.705.2018.03.27.11.09.59; Tue, 27 Mar 2018 11:10:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752171AbeC0SH4 (ORCPT + 99 others); Tue, 27 Mar 2018 14:07:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41360 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbeC0Q3a (ORCPT ); Tue, 27 Mar 2018 12:29:30 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 17F861094; Tue, 27 Mar 2018 16:29:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Larry Finger , James Cameron , Kalle Valo Subject: [PATCH 4.4 27/43] rtlwifi: rtl8723be: Fix loss of signal Date: Tue, 27 Mar 2018 18:27:31 +0200 Message-Id: <20180327162717.940562599@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162716.407986916@linuxfoundation.org> References: <20180327162716.407986916@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Larry Finger commit 78dc897b7ee67205423dbbc6b56be49fb18d15b5 upstream. In commit c713fb071edc ("rtlwifi: rtl8821ae: Fix connection lost problem correctly") a problem in rtl8821ae that caused loss of signal was fixed. That same problem has now been reported for rtl8723be. Accordingly, the ASPM L1 latency has been increased from 0 to 7 to fix the instability. Signed-off-by: Larry Finger Cc: Stable Tested-by: James Cameron Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c @@ -1123,7 +1123,8 @@ static void _rtl8723be_enable_aspm_back_ /* Configuration Space offset 0x70f BIT7 is used to control L0S */ tmp8 = _rtl8723be_dbi_read(rtlpriv, 0x70f); - _rtl8723be_dbi_write(rtlpriv, 0x70f, tmp8 | BIT(7)); + _rtl8723be_dbi_write(rtlpriv, 0x70f, tmp8 | BIT(7) | + ASPM_L1_LATENCY << 3); /* Configuration Space offset 0x719 Bit3 is for L1 * BIT4 is for clock request