Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp406813ybn; Tue, 1 Oct 2019 23:31:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwH9ECVxprTdEQbvQHWmlB146o/1c4adiSEnNa2HBbEqqA7V5szmFKVsyd1cAywWu+E5ppu X-Received: by 2002:a17:906:4d58:: with SMTP id b24mr1631731ejv.263.1569997889054; Tue, 01 Oct 2019 23:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569997889; cv=none; d=google.com; s=arc-20160816; b=Vs9ORuLzEvd6yJXdsXJguOr+ZYr9bMbLW9HDKtMn94eKV4tZBnlRMqDibv13d2pJD6 x40gAUAcSIa1r7Jdzv+3r2O25jDw1XQMElocoubqe6H7AcQRWdaXX7kSTANvnG37cIo1 Sr18AdcpOvUZWuB35I0KC6ddykqSepl9YVdg8apqUKO4zwRvQ26ruvMt8/h1f6wZ8xVv HQhcr2Cf+EC+9mj8gmdQ/Trdnz19kER/pgPiLJ05+QL5rNLvXBjS4tI3nvImrejlTzFb fv2E6bIzukFUFZ+DwZB5A25ruYJETlp/8j/eWajq4+yCCG2uDj97hdkMr/dDUAlM3kdR SCQQ== 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=K1bjt2tzCg4k9rrxA5Ho8UJMnX3856yh9KKk66Arees=; b=oAYrLlEvsQc4RXwjSXua6gqTbuvwQY9mu3xQbScgbRWml2r+362+frLOA9r/SAMdkn SiJHAekQr2s3OKoE8ET1BNKIUf+OkwfC98N6V/3q0n3kuQxJB5rfpqXaGqeVTqvvV7tj Q4jmnrLtJG/HNv83OzNV442DA5Y5tXsxMKVo57nDn1bzoLBZ2s/JS3zsY4OVjkne0ezp DEBUu4Q1VYH7wMLLcoCYWEQk27pyQ6C10cpNbI7RGh7m+lkJHMprE8FZMOZVgZY+/T99 we68hbFSBtrAeV1dm0UZascvpYng3aCGj1RfqS+ncR6xwjWrMAEVoLFDFMsXZn/6GhaC R47Q== 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 b13si10438877edy.320.2019.10.01.23.31.04; Tue, 01 Oct 2019 23:31:28 -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 S1729794AbfJBCbn (ORCPT + 99 others); Tue, 1 Oct 2019 22:31:43 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:46016 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729789AbfJBCbn (ORCPT ); Tue, 1 Oct 2019 22:31:43 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x922VcHv031861, 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 x922VcHv031861 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 2 Oct 2019 10:31:38 +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; Wed, 2 Oct 2019 10:31:37 +0800 From: To: CC: , Subject: [PATCH v2 09/12] rtw88: not to enter LPS by coex strategy Date: Wed, 2 Oct 2019 10:31:25 +0800 Message-ID: <20191002023128.12090-10-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191002023128.12090-1-yhchuang@realtek.com> References: <20191002023128.12090-1-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 --- v1 -> v2 - rebase on top of wireless-drivers-next 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 4b5774687d21..1661cc2e5fe3 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.17.1