Received: by 10.213.65.68 with SMTP id h4csp852391imn; Tue, 27 Mar 2018 09:58:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx48FR3rq/Gow7FZR9/oDPRH3IntELH8SipBIWKfn4ixGNUKAtDoMiu3qroqVfC4Tlhr7OvoZ X-Received: by 10.101.101.204 with SMTP id y12mr88782pgv.142.1522169927589; Tue, 27 Mar 2018 09:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522169927; cv=none; d=google.com; s=arc-20160816; b=YSmjuXyKDD/f+wO8SB0K0FZLv44lzu/au4WGenuVNpv0niwjvtFvBJTB4nPRQU4psL cgd4jytNUyIzSepSs09FJO3WBSlumDV0nSS/VIDwVuNLYnprSUD8aIaNOqI9iX15ulUu rUpMJOBb9rJs0ZcC7j7qEgtwSd22WaZRNy7UyRpHqRabtTFD5ZYIOvpwRq8AO9LUSSPW vSQa9mCjymoAbMAk5rXCRblSH81qKc8wj9gAlE+/Cz/RO/YRWimSuUaqBpKbAkslnWH2 wEA0tpgF7wjudrsDgQPwqEoEs21bODqiyrZtWF8QTy3j90QNxa6S1bo6MffhuiQvkLWn 3yRA== 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=4CW3bmwc48XSCthywazGKNGnidg2Z+7MStGdvlOUQKQ=; b=U7hIWyeIPaoVHdp72IYomOcXMWiXQ6F82fPTODqkZlPEWuQ8gn68HzFgOI/GYcEq8X nSIYjxYI0XFtm0Ewtt/CdS7/ZnHo5JsfknY1PNsiJ3+leMDTCnoJqpxZcBjAg/0r5BwH cGlWrt6te+j3z/sBjHYadyzngcdq1YXong7aK+s4AUu5q+eD4lV3buRiub0tXyro/Vu8 b4lthDiGUvfcx5MsF+xCPf+dQluO6/61Do469KlQ0qthm/avuojFYKodmQfZWpxuGaVZ np9iNTKIy0eaKbQgq9nnhwgpX/xkAT70D58RWSXla4nNKhi7JzLM8bfzUFwOExUhh6/w McAg== 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 t5si1106157pgo.96.2018.03.27.09.58.33; Tue, 27 Mar 2018 09:58:47 -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 S932568AbeC0Qld (ORCPT + 99 others); Tue, 27 Mar 2018 12:41:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48742 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932536AbeC0Qlb (ORCPT ); Tue, 27 Mar 2018 12:41:31 -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 85439F3A; Tue, 27 Mar 2018 16:41:30 +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.15 068/105] rtlwifi: rtl8723be: Fix loss of signal Date: Tue, 27 Mar 2018 18:27:48 +0200 Message-Id: <20180327162802.038887372@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162757.813009222@linuxfoundation.org> References: <20180327162757.813009222@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.15-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 @@ -1124,7 +1124,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