All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@kernel.org>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2 10/13] rtw89: 8852c: add chip::dle_mem
Date: Thu, 10 Mar 2022 18:37:32 +0200	[thread overview]
Message-ID: <87k0d1rcfn.fsf@kernel.org> (raw)
In-Reply-To: <20220307060457.56789-11-pkshih@realtek.com> (Ping-Ke Shih's message of "Mon, 7 Mar 2022 14:04:54 +0800")

Ping-Ke Shih <pkshih@realtek.com> writes:

> These tables are used to configure hardware buffer size according to
> operating mode.
>
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
> ---
>  drivers/net/wireless/realtek/rtw89/core.h     |  1 +
>  drivers/net/wireless/realtek/rtw89/mac.c      | 62 +++++++++++++++++++
>  drivers/net/wireless/realtek/rtw89/mac.h      | 10 +++
>  drivers/net/wireless/realtek/rtw89/reg.h      |  1 +
>  drivers/net/wireless/realtek/rtw89/rtw8852c.c | 12 ++++
>  5 files changed, 86 insertions(+)
>
> diff --git a/drivers/net/wireless/realtek/rtw89/core.h b/drivers/net/wireless/realtek/rtw89/core.h
> index 2dc19b530db62..207ac7e605691 100644
> --- a/drivers/net/wireless/realtek/rtw89/core.h
> +++ b/drivers/net/wireless/realtek/rtw89/core.h
> @@ -2168,6 +2168,7 @@ struct rtw89_ple_quota {
>  	u16 bb_rpt;
>  	u16 wd_rel;
>  	u16 cpu_io;
> +	u16 tx_rpt;
>  };
>  
>  struct rtw89_dle_mem {
> diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c
> index df657df6b1493..0081cfbfea042 100644
> --- a/drivers/net/wireless/realtek/rtw89/mac.c
> +++ b/drivers/net/wireless/realtek/rtw89/mac.c
> @@ -1183,6 +1183,18 @@ const struct rtw89_dle_size rtw89_wde_size4 = {
>  };
>  EXPORT_SYMBOL(rtw89_wde_size4);
>  
> +/* 8852C DLFW */
> +const struct rtw89_dle_size rtw89_wde_size18 = {
> +	RTW89_WDE_PG_64, 0, 2048,
> +};
> +EXPORT_SYMBOL(rtw89_wde_size18);
> +
> +/* 8852C PCIE SCC */
> +const struct rtw89_dle_size rtw89_wde_size19 = {
> +	RTW89_WDE_PG_64, 3328, 0,
> +};
> +EXPORT_SYMBOL(rtw89_wde_size19);
> +
>  /* PCIE */
>  const struct rtw89_dle_size rtw89_ple_size0 = {
>  	RTW89_PLE_PG_128, 1520, 16,
> @@ -1195,6 +1207,18 @@ const struct rtw89_dle_size rtw89_ple_size4 = {
>  };
>  EXPORT_SYMBOL(rtw89_ple_size4);
>  
> +/* 8852C DLFW */
> +const struct rtw89_dle_size rtw89_ple_size18 = {
> +	RTW89_PLE_PG_128, 2544, 16,
> +};
> +EXPORT_SYMBOL(rtw89_ple_size18);
> +
> +/* 8852C PCIE SCC */
> +const struct rtw89_dle_size rtw89_ple_size19 = {
> +	RTW89_PLE_PG_128, 1904, 16,
> +};
> +EXPORT_SYMBOL(rtw89_ple_size19);

How much memory does does one EXPORT_SYMBOL() take? There are a lot of
symbols exported now, and some of them have just four values. Wouldn't
it make more sense to have only one exported structure which contains
all the smaller structures?

You could consider this as a separate cleanup.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

  reply	other threads:[~2022-03-10 16:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-07  6:04 [PATCH v2 00/13] rtw89: generalize functions shared with 8852CE Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 01/13] rtw89: 8852c: add 8852c empty files Ping-Ke Shih
2022-03-10 16:45   ` Kalle Valo
2022-03-07  6:04 ` [PATCH v2 02/13] rtw89: pci: add struct rtw89_pci_info Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 03/13] rtw89: pci: add V1 of PCI channel address Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 04/13] rtw89: pci: use a struct to describe all registers address related to DMA channel Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 05/13] rtw89: read chip version depends on chip ID Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 06/13] rtw89: add power_{on/off}_func Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 07/13] rtw89: add hci_func_en_addr to support variant generation Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 08/13] rtw89: add chip_info::{h2c,c2h}_reg to support more chips Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 09/13] rtw89: add page_regs to handle v1 chips Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 10/13] rtw89: 8852c: add chip::dle_mem Ping-Ke Shih
2022-03-10 16:37   ` Kalle Valo [this message]
2022-03-11  0:16     ` Pkshih
2022-03-07  6:04 ` [PATCH v2 11/13] rtw89: support DAV efuse reading operation Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 12/13] rtw89: 8852c: process efuse of phycap Ping-Ke Shih
2022-03-07  6:04 ` [PATCH v2 13/13] rtw89: 8852c: process logic efuse map 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=87k0d1rcfn.fsf@kernel.org \
    --to=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@realtek.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.