linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Kalle Valo <kvalo@kernel.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH 2/2] wifi: rtw89: cleanup rtw89_iqk_info and related code
Date: Thu, 8 Jun 2023 00:40:30 +0000	[thread overview]
Message-ID: <4940e73006ec49c5adf76200c35d7704@realtek.com> (raw)
In-Reply-To: <20230606140806.606352-2-dmantipov@yandex.ru>



> -----Original Message-----
> From: Dmitry Antipov <dmantipov@yandex.ru>
> Sent: Tuesday, June 6, 2023 10:08 PM
> To: Ping-Ke Shih <pkshih@realtek.com>
> Cc: Kalle Valo <kvalo@kernel.org>; linux-wireless@vger.kernel.org; Dmitry Antipov <dmantipov@yandex.ru>
> Subject: [PATCH 2/2] wifi: rtw89: cleanup rtw89_iqk_info and related code
> 
> Drop useless '_iqk_track()' and 'rtw8852a_iqk_track()' (they
> just change 'thermal_rek_en' field which is set but unused
> and so removed as well) functions, set but unused 'kcount'
> field of 'struct rtw89_iqk_info', convert 'thermal' to local
> variables where appropriate (it doesn't need to have longer
> storage duration because it is actually used for debugging
> purposes only), fix typos.
> 
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
> ---
>  drivers/net/wireless/realtek/rtw89/core.h     |  3 --
>  drivers/net/wireless/realtek/rtw89/rtw8852a.c |  1 -
>  .../net/wireless/realtek/rtw89/rtw8852a_rfk.c | 34 +------------------
>  .../net/wireless/realtek/rtw89/rtw8852a_rfk.h |  1 -
>  .../net/wireless/realtek/rtw89/rtw8852b_rfk.c |  8 +----
>  .../net/wireless/realtek/rtw89/rtw8852c_rfk.c |  9 ++---
>  6 files changed, 4 insertions(+), 52 deletions(-)
> 

[...]

> diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c
> b/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c
> index cd6c39b7f802..afb7eba3dc44 100644
> --- a/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c
> +++ b/drivers/net/wireless/realtek/rtw89/rtw8852a_rfk.c
> @@ -1284,11 +1284,8 @@ static void _iqk_info_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
>         u32 tmp = 0x0;
>         bool flag = 0x0;
> 
> -       iqk_info->thermal[path] =
> -               ewma_thermal_read(&rtwdev->phystat.avg_thermal[path]);
> -       iqk_info->thermal_rek_en = false;
>         rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%d_thermal = %d\n", path,
> -                   iqk_info->thermal[path]);
> +                   (u8)ewma_thermal_read(&rtwdev->phystat.avg_thermal[path]));

nit: no need casting (u8)

>         rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%d_LOK_COR_fail= %d\n", path,
>                     iqk_info->lok_cor_fail[0][path]);
>         rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%d_LOK_FIN_fail= %d\n", path,

[...]

> diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c
> b/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c
> index 2c0bc3a4ab3b..d8c8688faee4 100644
> --- a/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c
> +++ b/drivers/net/wireless/realtek/rtw89/rtw8852c_rfk.c
> @@ -1261,11 +1261,8 @@ static void _iqk_info_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
>         u32 tmp;
>         bool flag;
> 
> -       iqk_info->thermal[path] =
> -               ewma_thermal_read(&rtwdev->phystat.avg_thermal[path]);
> -       iqk_info->thermal_rek_en = false;
>         rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%d_thermal = %d\n", path,
> -                   iqk_info->thermal[path]);
> +                   (u8)ewma_thermal_read(&rtwdev->phystat.avg_thermal[path]));

nit: no need casting (u8)

>         rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%d_LOK_COR_fail= %d\n", path,
>                     iqk_info->lok_cor_fail[0][path]);
>         rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%d_LOK_FIN_fail= %d\n", path,

[...]


  reply	other threads:[~2023-06-08  0:40 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-06  8:33 [PATCH] wifi: rtw89: cleanup private data structures Dmitry Antipov
2023-06-06 14:08 ` [PATCH 1/2] " Dmitry Antipov
2023-06-06 14:08   ` [PATCH 2/2] wifi: rtw89: cleanup rtw89_iqk_info and related code Dmitry Antipov
2023-06-08  0:40     ` Ping-Ke Shih [this message]
2023-06-08  7:45     ` [PATCH] [v2] " Dmitry Antipov
2023-06-08  8:03       ` Ping-Ke Shih
2023-06-08  8:24       ` [PATCH 1/2] [v3] wifi: rtw89: cleanup private data structures Dmitry Antipov
2023-06-08  8:24         ` [PATCH 2/2] [v3] wifi: rtw89: cleanup rtw89_iqk_info and related code Dmitry Antipov
2023-06-08  8:42           ` Ping-Ke Shih
2023-06-13  8:23           ` Kalle Valo
2023-06-08  8:41         ` [PATCH 1/2] [v3] wifi: rtw89: cleanup private data structures Ping-Ke Shih
2023-06-13  8:38         ` Kalle Valo
2023-06-13  8:56           ` Dmitry Antipov
2023-06-13  9:11             ` Ping-Ke Shih
2023-06-13  9:12             ` Kalle Valo
2023-06-13 10:01             ` [PATCH 1/3] [v4] " Dmitry Antipov
2023-06-13 10:01               ` [PATCH 2/3] [v4] wifi: rtw89: cleanup rtw89_iqk_info and related code Dmitry Antipov
2023-06-14  2:54                 ` Ping-Ke Shih
2023-06-13 10:01               ` [PATCH 3/3] wifi: rtw89: fix typo Dmitry Antipov
2023-06-14  2:56                 ` Ping-Ke Shih
2023-06-14  5:11                 ` [PATCH 1/3] [v5] wifi: rtw89: cleanup private data structures Dmitry Antipov
2023-06-14  5:11                   ` [PATCH 2/3] [v5] wifi: rtw89: cleanup rtw89_iqk_info and related code Dmitry Antipov
2023-06-14  7:05                     ` Ping-Ke Shih
2023-06-14  5:11                   ` [PATCH 3/3] [v5] wifi: rtw89: fix spelling typo of IQK debug messages Dmitry Antipov
2023-06-14  7:06                     ` Ping-Ke Shih
2023-06-14  8:15                     ` [PATCH 1/3] [v6] wifi: rtw89: cleanup private data structures Dmitry Antipov
2023-06-14  8:15                       ` [PATCH 2/3] [v6] wifi: rtw89: cleanup rtw89_iqk_info and related code Dmitry Antipov
2023-06-14  8:15                       ` [PATCH 3/3] [v6] wifi: rtw89: fix spelling typo of IQK debug messages Dmitry Antipov
2023-06-14  8:22                         ` Ping-Ke Shih
2023-06-15  7:47                       ` [PATCH 1/3] [v6] wifi: rtw89: cleanup private data structures Kalle Valo
2023-06-14  7:04                   ` [PATCH 1/3] [v5] " Ping-Ke Shih
2023-06-14  2:50               ` [PATCH 1/3] [v4] " Ping-Ke Shih
2023-06-08  0:31   ` [PATCH 1/2] " Ping-Ke Shih
2023-06-08  0:23 ` [PATCH] " Ping-Ke Shih

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4940e73006ec49c5adf76200c35d7704@realtek.com \
    --to=pkshih@realtek.com \
    --cc=dmantipov@yandex.ru \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).