Received: by 10.213.65.68 with SMTP id h4csp903549imn; Tue, 27 Mar 2018 10:54:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx488Erx0brKQNccjmrlfZqv4jGCX5hIyEp9kX3bKBM9eDIYk4Iom3R9CqYnHUuQPNFFtevUx X-Received: by 2002:a17:902:4303:: with SMTP id i3-v6mr288010pld.302.1522173256475; Tue, 27 Mar 2018 10:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522173256; cv=none; d=google.com; s=arc-20160816; b=iLrKi18DoTB/8cwWM3b3qb45ZuNSKBUzXatjuhuUNzYJ4ta8BHKZvmfAz33iF01gXg xhueOJ0qU5L23LHMXGL8gAHfNE1F2SADREAqkvoEo47redbrGQcN0xKDrD7zh19BuZyy Dw5msuEmCPzMbDBjKMf1Xh82HQ7zmTWukNyZMczus1Dx9wWpAtWmmtLF+6uu4+lr2PF5 T/A09oOuWy/zhvbxlfb1ncNRRnqCAQoEKT0rtyAC8xPEv7nPXPviwYotkEausYdj0Mmf SAxoIiWEdcmRgyQodYTbmHzH8gNtWhnIFNa12JXNQ19RGzTz+Eq/iUrSzyjrJ+EPif2w uBXA== 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=BnGjxc2YKBxXIFBsE+pNo+yW4k/OrPqlOwZq/PpFCu8=; b=dxI6vsLpb4GChgBaVSDwWdzCxU8L2Y2sRe7S3yuXSCulxGmxNVE1PKBJyBV51DQqwE ZjgeATQAMon2aaVQ7jnhmMNXYlzKsxWCLIhVBXhTPEHkXXuKTKk/dxtecHyW6LVSYDaW /h5zmIJW7fGWpKQoVgamv4eiaENnpBVqxL2vqNt4IOU28zMJ9MvfBHoEDnV21M3O7wnS KuKZ/BPNbnNCfBYmd9BlV111Jc07ZjE992q/NrBaYyOXZ7J1obMj5EFRqzBRW8whBJhz kMEtZP0isLOxYgxHMIwUdRh2Gbu1tI6impKLvE6nyWCQLVOuZnVqCYZij5uegX6z8c1g ES1Q== 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 i21si1304196pfk.34.2018.03.27.10.54.02; Tue, 27 Mar 2018 10:54:16 -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 S1752995AbeC0QcG (ORCPT + 99 others); Tue, 27 Mar 2018 12:32:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43158 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753489AbeC0Qb6 (ORCPT ); Tue, 27 Mar 2018 12:31:58 -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 522F4F0A; Tue, 27 Mar 2018 16:31:57 +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.9 36/67] rtlwifi: rtl8723be: Fix loss of signal Date: Tue, 27 Mar 2018 18:27:28 +0200 Message-Id: <20180327162728.987281107@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180327162726.702411083@linuxfoundation.org> References: <20180327162726.702411083@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.9-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 @@ -1125,7 +1125,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