Received: by 10.213.65.68 with SMTP id h4csp873874imn; Tue, 27 Mar 2018 10:21:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49qcPkvDkmB0l5CXsddlyh3WPtTylnzXWabseJsfVfNz2eBxZiMsscm0s0JQD6s1iDfecfk X-Received: by 2002:a17:902:6941:: with SMTP id k1-v6mr173255plt.185.1522171267305; Tue, 27 Mar 2018 10:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522171267; cv=none; d=google.com; s=arc-20160816; b=GGKGS5xkCAvbHlrSPh7osKjVT8hUcljKSMgWroFwV6VHJC23O+S+iqk88E/yDOosp5 klV004RjqXmQbW3IyYJqxeUGiHg2aMPlgdiUfsJ+v++iIUa7UHDcBQXUKrYFtjScwsTu dJAbafx7xOSLT283h+mE07GEK0safpuCQMm0xojSc/QoMiffxLkhVh4tGTxTQ5v6DT+q EyQzwaOJU21enGAWfIE3zys3xIfKzmmiuCLrcY8F9OoBa/7QXHV6bMNj/AK0s+seEPUG 2dkrR/V8OyOnRSqlVEnDWA5obfIiIw7w3tnAe/LEZOUkMH13anfESbrDCrd5n3OFLCLw gV8g== 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=/I3D52+rd/DOVYVkkKIMbPDW5RlbWPV+TePchm6H0gM=; b=r6WduVI/dyQsGt1adup+9uvxP9IKChBkrVLuZpAWVUuz+7OnpJKnVclFiRM8epUnR0 Qqiufl2hdvfewaqEFBp0eIGM0HkhFpVRjMxD39oKBVURdQTyct1bhwWLzPCu7eZZQVpX L0P0ng2zu7p8uBNe0MwH+EG1RQO8qX3mM9t66Ar91OdHKTjqvnR/dODx12guzXcgtq4y UAoQFbT42r3EzJ+XA1Oy6vCFooeV7AmZEa/+VFcqbWPqmrVRnVTpc5T4P/ITVvRgTDld +l1m0P54/INFwqzJKAtNnnZI+VeTX5T7biIb0WHx9E3NJn7YDwSceZdkopyJ8XvHJk14 lUEQ== 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 c4si1130380pgu.355.2018.03.27.10.20.53; Tue, 27 Mar 2018 10:21:07 -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 S1755139AbeC0QiK (ORCPT + 99 others); Tue, 27 Mar 2018 12:38:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:46622 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755093AbeC0QiH (ORCPT ); Tue, 27 Mar 2018 12:38:07 -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 2840AF8A; Tue, 27 Mar 2018 16:38:07 +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.14 063/101] rtlwifi: rtl8723be: Fix loss of signal Date: Tue, 27 Mar 2018 18:27:35 +0200 Message-Id: <20180327162753.863418192@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162749.993880276@linuxfoundation.org> References: <20180327162749.993880276@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.14-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