Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3781353ybe; Mon, 16 Sep 2019 00:47:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnDyTIZ1QlWaGcUpMpt1SKnm6fivCgavzRzRyGn8/7na/mwUIyU28+TRvSrOxIuZAzVKnI X-Received: by 2002:a17:906:5393:: with SMTP id g19mr40815340ejo.256.1568620049845; Mon, 16 Sep 2019 00:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568620049; cv=none; d=google.com; s=arc-20160816; b=APLjoNMWFhIvEqxkqW1xaMQtho+yi7nn0CAjYa0CvTkvnWIBfGQKLHWjH/Ee8e02OF +G1aEOHPp7rwP04hKm9IIhbrlVqxlMCQv/j+HcwUIw+Om304rOHmsF27fRLAULSfkTlJ 1MONPwcDWAsuJVk9CtGaEJ22662MPPeUk8SY4bEqsOXt+31vClzbIz1vtnVLupYfB5V7 oG/1lIdlPxXyMxf1AjlYhnmjOj7e3MPidg2bihN7Enn0VWm79nNrPZ1gsM26HhIH3jM3 uAIp0T6yUucGz4YJ2FZZYmtFNgzCKA/btdLcOSdZs/s7NWWz8Z4lKF48ik/PteGMCUY5 BLZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=2ehQ3a5EWofPMRmZ3mTdtnWo9qvxFnHX8wAbBJS7cF0=; b=wqzZg+44tYFp/qiCUFXFRLzwiNBSBsGMjvvsvwUU9Wkwgpa0t3nvmuadZ0eR1oDf1s U1a8lidq6uWl8XTYOYbHyKAxVRqj/4bAgk+YvVx7Q0V4bQysABOBQcf+YT49DGQwSsGl RFNOiLLYY7g/eC+ITc+jaQ54/4Be20DLOrYNHBUXye8CeiBQyWVM8AZLb93sM0fAaufk eGRbDuFeiIc5bfPIYB0PbLus0x0Xi4vxp3C4cYZjgNQpmuR7jAmdgWjQeV6faOwJe0kP nmC5ESPPIaPGdMm8xDzSBKr4251hmoy+kOhGiQVyuy2uIwn6iLj4mNJGW/B3R1i3Z6Et zqIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 b44si8410532ede.451.2019.09.16.00.47.06; Mon, 16 Sep 2019 00:47:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730300AbfIPHEF (ORCPT + 99 others); Mon, 16 Sep 2019 03:04:05 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:60357 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730277AbfIPHEE (ORCPT ); Mon, 16 Sep 2019 03:04:04 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x8G73xIL030015, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x8G73xIL030015 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 16 Sep 2019 15:03:59 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Mon, 16 Sep 2019 15:03:58 +0800 From: To: CC: , Subject: [PATCH 12/15] rtw88: not to enter LPS by coex strategy Date: Mon, 16 Sep 2019 15:03:42 +0800 Message-ID: <1568617425-28062-13-git-send-email-yhchuang@realtek.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568617425-28062-1-git-send-email-yhchuang@realtek.com> References: <1568617425-28062-1-git-send-email-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang Sometimes LPS is not compatible with COEX's strategy, and COEX will not allow driver to enter it. Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/ps.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw88/ps.c b/drivers/net/wireless/realtek/rtw88/ps.c index 4b57746..1661cc2 100644 --- a/drivers/net/wireless/realtek/rtw88/ps.c +++ b/drivers/net/wireless/realtek/rtw88/ps.c @@ -191,6 +191,9 @@ void rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id) { lockdep_assert_held(&rtwdev->mutex); + if (rtwdev->coex.stat.wl_force_lps_ctrl) + return; + __rtw_enter_lps(rtwdev, port_id); __rtw_enter_lps_deep(rtwdev); } -- 2.7.4