Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5402350rwd; Mon, 5 Jun 2023 03:10:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CFsaAomQpCN6C0lEjWq9U4FR22u+Vgldboi1ZCpYkiq5v9yAahl+nX9rvOvfuRwZkp0ns X-Received: by 2002:a17:90a:8992:b0:253:510e:130a with SMTP id v18-20020a17090a899200b00253510e130amr7853242pjn.19.1685959805777; Mon, 05 Jun 2023 03:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685959805; cv=none; d=google.com; s=arc-20160816; b=Y8PfRz1sBd9mj5xDTvEuWRmlZNxmd8Dm3YhGYQWOmOz5hzHL1qNpCAXBPbI27PG72l A/zzrenheT3a3WUE7U3B+4HMhM68v+EuKKxCMXd2rnSsCZVifkVU/Z3jH2g4yD97UcYp XfX6fCF66MBI5sQldGZZoh70Rykn7tWMKPt6Lq1xmWYnwe1n54T/NFqFV5cAkAex+BRH dmVHJ+HbHmXaNbtEZv5efiPduvzyiueZ3oWMO+XNnuygMMCJWGLiY/ai3ZCD2OVHA/8c +kQ2l0OpQYWq/5J70FZ7hxMt2r17ftBIf3+0/RuPZ4H1887iIfsN2gUXSHgnj9BDQwoR GlNw== 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=k3I2MRzPWJPZNPqE9Rqsvoq435M/fRntrShOV0+g3oQ=; b=hovgI8KuLSlx3HqSlBqmK8LAh9g+e54eFIA+Zh+eAZngQhH73g3b+5OxK+VTeS0626 GyNqpg3xOsvrjOcCKyYhr0N+t+Z/RgfIVicFOSWU8X3Rm00rL/hd8Cb7+lwnOXSEtGNM D6Yu0trn3duHgn4spzSJSM4u4vJEWqhy+E/QVReOt66w7DVc/goiZ+GnJFmoTdLp0Ing ufNcjRciGKn4VTzzQ+gqTcSkMqG5+nH73494eRgOaNLQdTBOAvA3X2jDp3aq0l+7RI5R rZXzvYyG3YRWI+STWiDTHoyPLblKZ7gon+jPsML1hxyDsLV636Taw1/FRRHpWMo7Mxkp kmMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=lHx0+L94; 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=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot18-20020a17090b3b5200b0025378fb1538si5538778pjb.41.2023.06.05.03.09.57; Mon, 05 Jun 2023 03:10:05 -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=@yandex.ru header.s=mail header.b=lHx0+L94; 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=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231463AbjFEKHf (ORCPT + 63 others); Mon, 5 Jun 2023 06:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbjFEKHd (ORCPT ); Mon, 5 Jun 2023 06:07:33 -0400 Received: from forward103b.mail.yandex.net (forward103b.mail.yandex.net [178.154.239.150]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67D2EE3 for ; Mon, 5 Jun 2023 03:07:32 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:6e01:0:640:627f:0]) by forward103b.mail.yandex.net (Yandex) with ESMTP id 2DF0360049; Mon, 5 Jun 2023 13:07:30 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id H7P24T2DaCg0-zt906IQZ; Mon, 05 Jun 2023 13:07:29 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1685959649; bh=k3I2MRzPWJPZNPqE9Rqsvoq435M/fRntrShOV0+g3oQ=; h=Message-Id:Date:Cc:Subject:To:From; b=lHx0+L94XeVUpW1NzeQR5suzKQ5N9yR9s8TAh67/Ox4OqrozyRe1T5EbBviGuFki6 EuMOB+rh7ruHgAMrLUusJ9Nyw9Qly1ldNc8UQechWniuJTb4LuZ1LsPg8tIRLTXkow fWzb4rFCYEwWGeJrOGcoYFvw73qsHhn1LwMWMzis= Authentication-Results: mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Ping-Ke Shih Cc: Kalle Valo , linux-wireless@vger.kernel.org, Dmitry Antipov Subject: [PATCH] wifi: rtlwifi: remove misused flag from HAL data Date: Mon, 5 Jun 2023 13:07:00 +0300 Message-Id: <20230605100700.111644-1-dmantipov@yandex.ru> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Always rely on 'driver_is_goingto_unload' of 'struct rtl_hal' and remove (presumably misused) 'driver_going2unload' from it. Signed-off-by: Dmitry Antipov --- drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | 6 +++--- drivers/net/wireless/realtek/rtlwifi/wifi.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c index a8b5bf45b1bb..4ae8f69c64f9 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c @@ -1302,7 +1302,7 @@ static void _rtl92s_phy_set_rfhalt(struct ieee80211_hw *hw) struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); u8 u1btmp; - if (rtlhal->driver_going2unload) + if (rtlhal->driver_is_goingto_unload) rtl_write_byte(rtlpriv, 0x560, 0x0); /* Power save for BB/RF */ @@ -1323,7 +1323,7 @@ static void _rtl92s_phy_set_rfhalt(struct ieee80211_hw *hw) rtl_write_word(rtlpriv, CMDR, 0x57FC); rtl_write_word(rtlpriv, CMDR, 0x0000); - if (rtlhal->driver_going2unload) { + if (rtlhal->driver_is_goingto_unload) { u1btmp = rtl_read_byte(rtlpriv, (REG_SYS_FUNC_EN + 1)); u1btmp &= ~(BIT(0)); rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, u1btmp); @@ -1345,7 +1345,7 @@ static void _rtl92s_phy_set_rfhalt(struct ieee80211_hw *hw) /* Power save for MAC */ if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS && - !rtlhal->driver_going2unload) { + !rtlhal->driver_is_goingto_unload) { /* enable LED function */ rtl_write_byte(rtlpriv, 0x03, 0xF9); /* SW/HW radio off or halt adapter!! For example S3/S4 */ diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 307e059ec8aa..a16b779080cb 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -1673,8 +1673,6 @@ struct rtl_hal { bool fw_clk_change_in_progress; bool allow_sw_to_change_hwclc; u8 fw_ps_state; - /**/ - bool driver_going2unload; /*AMPDU init min space*/ u8 minspace_cfg; /*For Min spacing configurations */ -- 2.40.1