From patchwork Wed Apr 21 10:43:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 425716 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C89A9C433B4 for ; Wed, 21 Apr 2021 10:44:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94D6461450 for ; Wed, 21 Apr 2021 10:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235133AbhDUKoj (ORCPT ); Wed, 21 Apr 2021 06:44:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:42416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235065AbhDUKoj (ORCPT ); Wed, 21 Apr 2021 06:44:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3EBA56144F; Wed, 21 Apr 2021 10:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619001846; bh=3i8i+YuxFykd/N2sZYPpwKkoKgZ1UmdF2KcGhGOEZHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K9yaMuGBb8bHT78iMcOvDMhSiFJ26K/uDKsr2oKVgLPBLY164TwXXzEc1j5ZoJhDW FQb2LglLQqwTU/9Gn+kcKeIT/jIlRFieUORBPrBn4PT5p3jIu3xSZsAjtMeTtZ2Rev UrKKIEbIIRI+AYJ7fHVByQ6H/7fksP1GXbMEzo5j4h39drAztBR6v+dBLdYKt96v/Y mLiOg9+DQVrtlBm8fQyAuHGid9yzRkcEUXqXLg2UP7M7Y82gUx4VOYguSp0wOeO1Fz CpzO4PGmVTIPwuM7OqUoIoKOdmEr8i+fdb4yEsJlr1jOQJkY7r0G1tHGbkZf++E7hX iHCrrsU8z2rIA== From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com Subject: [PATCH 4/4] mt76: mt7921: mt7921_stop should put device in fw_own state Date: Wed, 21 Apr 2021 12:43:51 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang mt7921_stop should put device in fw_own state to reduce power consumption. Signed-off-by: Sean Wang Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c index b32f26c1f8b3..6f180c92d413 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c @@ -37,7 +37,7 @@ void mt76_connac_power_save_sched(struct mt76_phy *phy, if (!mt76_is_mmio(dev)) return; - if (!pm->enable || !test_bit(MT76_STATE_RUNNING, &phy->state)) + if (!pm->enable) return; pm->last_activity = jiffies;