Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5494530imw; Wed, 20 Jul 2022 06:53:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sY8vkMVG/Kq2v7+0h8qvC/Ctdzi/v973dYNiNcH7cqgHpBAGZdk05zLLrknpRc+QxFLMJm X-Received: by 2002:a17:906:2086:b0:715:7983:a277 with SMTP id 6-20020a170906208600b007157983a277mr35352908ejq.386.1658325209873; Wed, 20 Jul 2022 06:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658325209; cv=none; d=google.com; s=arc-20160816; b=VjL8R3DbzYYlvKg0phdW0+1vLFkdL3FR/MOrOYZxxU47rA/t8OUGm26z0+UaBmPBRE 3ITf0yxZi+Q5L1yKxnpKN20iWxbOh2oPOAOoGV+CMOmCbcA5qtW8pu8HO7rIEH2t+SD1 q2L9qQLIokDNR5NVPn1Z04nSl+25p311NNILA4VAubWgMoZghwj08QNrtibMzIImYkMH w1ZYdJrXdgFGG0qDYhJOrYb3FrOuzTK3haHSwkb4IdEJG4vxUnH2bopG5aa6U3YBXhSf 4mRsucOGHsBJt8GuR2kj/tXy0/mNWh4DLD6mkh2X/MnMFr4xdrrph/ECUXhPKP5eb7Vb AtEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ftguVMJAWyYJiJRPBZGQ4qYMCrlO8PUR6mv9NbZ5GPg=; b=W6azH6U84jejeQvnDwko/Ifgiw/oaCI8peLozjnw8ndRzJHCwbhyFBC2QY20xiDZG4 q1iBWqJWx4gSOerFN0X4En0cXuUPtIyKkekUpU2+YRIzm2abgjaytNBc9U6kkGbdz3p7 IBp7EEQxeJQQciRrJN980aEm6tHAg+AKRrZLkzyMU78qqssBw2R/j2pcvAZCAoMUIrnQ K1fU7OJUEk2KnpdscEdNbd3HiqIq6EE93EwusDDmX4B9wPQ/Vf3MujRwJxD5OFRWRbiw B4fatzQV+LCQo/DQTdnGMQB4Woo8XeKwT0LpnTF78e4zWCdFyIqMSiOViXwuERXbBZcX koZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=IsIK8IXF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di7-20020a170906730700b0072f1dd96738si3346522ejc.140.2022.07.20.06.53.13; Wed, 20 Jul 2022 06:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=IsIK8IXF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232553AbiGTNuS (ORCPT + 65 others); Wed, 20 Jul 2022 09:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237447AbiGTNuQ (ORCPT ); Wed, 20 Jul 2022 09:50:16 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FBB0286FE for ; Wed, 20 Jul 2022 06:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1658325015; x=1689861015; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ftguVMJAWyYJiJRPBZGQ4qYMCrlO8PUR6mv9NbZ5GPg=; b=IsIK8IXFvAn68kt4RWoZaUdPZbQeLKgLnVDtIzfzcX6dhc02xn6H03MZ Ag+yJIbjdYdO0LGpzzrHxKV/ka4NHU56Dnwz4s4C7jiyOBu8KqPHuD/JI PKV2mgYuGLUidRCeodr8vrxWLId8MThn5m3r2QWofwcCcL8Btfe/GwTiG o=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 20 Jul 2022 06:50:15 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 06:50:15 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Jul 2022 06:50:14 -0700 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 20 Jul 2022 06:50:12 -0700 From: Manikanta Pubbisetty To: CC: , Manikanta Pubbisetty Subject: [PATCH 0/4] ath11k: Enable low power mode when WLAN is not active Date: Wed, 20 Jul 2022 19:19:55 +0530 Message-ID: <20220720134959.15688-1-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Currently, WLAN chip is powered once during driver probe and is kept ON (powered) always even when WLAN is not active; keeping the chip powered ON all the time will consume extra power which is not desirable on a battery operated device. Same is the case with non-WoW suspend, chip will not be put into low power mode when the system is suspended resulting in higher battery drain. Send QMI MODE OFF command to firmware during WiFi OFF to put device into low power mode. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00887-QCAMSLSWPLZ-1 Manikanta Pubbisetty (4): ath11k: Fix double free issue during SRNG deinit ath11k: Move hardware initialization logic to start() ath11k: Enable low power mode when WLAN is not active ath11k: Fix failed to parse regulatory event print drivers/net/wireless/ath/ath11k/core.c | 237 ++++++++++++++++++------- drivers/net/wireless/ath/ath11k/core.h | 8 +- drivers/net/wireless/ath/ath11k/hal.c | 1 + drivers/net/wireless/ath/ath11k/mac.c | 33 ++-- drivers/net/wireless/ath/ath11k/reg.c | 2 + 5 files changed, 189 insertions(+), 92 deletions(-) -- 2.35.1