linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH 16/20] wifi: rtw88: Add rtw8812a_table.{c,h}
Date: Thu, 15 Aug 2024 07:53:36 +0000	[thread overview]
Message-ID: <6499c9c2c6db41e9ba8c26c880ea42b4@realtek.com> (raw)
In-Reply-To: <e1ee4325-0878-46d5-bd51-8c994fa104a9@gmail.com>

Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> These contain various arrays for initialising RTL8812AU. Also TX power
> limits.
> 
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
> ---
>  .../wireless/realtek/rtw88/rtw8812a_table.c   | 2812 +++++++++++++++++
>  .../wireless/realtek/rtw88/rtw8812a_table.h   |   26 +
>  2 files changed, 2838 insertions(+)
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8812a_table.c
>  create mode 100644 drivers/net/wireless/realtek/rtw88/rtw8812a_table.h
> 
> diff --git a/drivers/net/wireless/realtek/rtw88/rtw8812a_table.c
> b/drivers/net/wireless/realtek/rtw88/rtw8812a_table.c
> new file mode 100644
> index 000000000000..0d005d88b0a4
> --- /dev/null
> +++ b/drivers/net/wireless/realtek/rtw88/rtw8812a_table.c
> @@ -0,0 +1,2812 @@
> +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
> +/* Copyright(c) 2018-2019  Realtek Corporation

year 2024

[...]

> +
> +const struct rtw_pwr_seq_cmd *card_enable_flow_8812a[] = {
> +       trans_carddis_to_cardemu_8812a,
> +       trans_cardemu_to_act_8812a,
> +       NULL
> +};
> +
> +const struct rtw_pwr_seq_cmd *enter_lps_flow_8812a[] = {
> +       trans_act_to_lps_8812a,
> +       NULL
> +};
> +
> +const struct rtw_pwr_seq_cmd *card_disable_flow_8812a[] = {
> +       trans_act_to_cardemu_8812a,
> +       trans_cardemu_to_carddis_8812a,
> +       NULL
> +};
> +

These three array should be 'const struct rtw_pwr_seq_cmd * const ...'.

I don't expect things in ".data" section.

$ objdump  -t rtw8812a_table.o | grep "\.data"
0000000000000000 g     O .data  0000000000000018 card_disable_flow_8812a
0000000000000020 g     O .data  0000000000000010 enter_lps_flow_8812a
0000000000000030 g     O .data  0000000000000018 card_enable_flow_8812a


[...]

> diff --git a/drivers/net/wireless/realtek/rtw88/rtw8812a_table.h
> b/drivers/net/wireless/realtek/rtw88/rtw8812a_table.h
> new file mode 100644
> index 000000000000..15ecc72b175a
> --- /dev/null
> +++ b/drivers/net/wireless/realtek/rtw88/rtw8812a_table.h
> @@ -0,0 +1,26 @@
> +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
> +/* Copyright(c) 2018-2019  Realtek Corporation

year 2024

> + */
> +
> +#ifndef __RTW8812A_TABLE_H__
> +#define __RTW8812A_TABLE_H__
> +
> +extern const struct rtw_table rtw8812a_mac_tbl;
> +extern const struct rtw_table rtw8812a_agc_tbl;
> +extern const struct rtw_table rtw8812a_agc_diff_lb_tbl;
> +extern const struct rtw_table rtw8812a_agc_diff_hb_tbl;
> +extern const struct rtw_table rtw8812a_bb_tbl;
> +extern const struct rtw_table rtw8812a_bb_pg_tbl;
> +extern const struct rtw_table rtw8812a_bb_pg_rfe3_tbl;
> +extern const struct rtw_table rtw8812a_rf_a_tbl;
> +extern const struct rtw_table rtw8812a_rf_b_tbl;
> +extern const struct rtw_table rtw8812a_txpwr_lmt_tbl;
> +
> +extern const struct rtw_pwr_seq_cmd *card_enable_flow_8812a[];
> +extern const struct rtw_pwr_seq_cmd *enter_lps_flow_8812a[];
> +extern const struct rtw_pwr_seq_cmd *card_disable_flow_8812a[];
> +
> +extern const struct rtw_pwr_track_tbl rtw8812a_rtw_pwr_track_tbl;
> +extern const struct rtw_pwr_track_tbl rtw8812a_rtw_pwr_track_rfe3_tbl;
> +
> +#endif
> --
> 2.46.0


  reply	other threads:[~2024-08-15  7:53 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-11 20:53 [PATCH 00/20] wifi: rtw88: Add support for RTL8821AU and RTL8812AU Bitterblue Smith
2024-08-11 20:54 ` [PATCH 01/20] wifi: rtw88: Add some definitions for RTL8821AU/RTL8812AU Bitterblue Smith
2024-08-15  6:34   ` Ping-Ke Shih
2024-08-11 20:54 ` [PATCH 02/20] wifi: rtw88: Dump the HW features only for some chips Bitterblue Smith
2024-08-15  6:10   ` Ping-Ke Shih
2024-08-19 17:51     ` Bitterblue Smith
2024-08-11 20:55 ` [PATCH 03/20] wifi: rtw88: Allow different C2H RA report sizes Bitterblue Smith
2024-08-15  6:14   ` Ping-Ke Shih
2024-08-19 17:52     ` Bitterblue Smith
2024-08-20  1:10       ` Ping-Ke Shih
2024-08-20 21:44         ` Bitterblue Smith
2024-08-21  0:31           ` Ping-Ke Shih
2024-08-21 11:13             ` Bitterblue Smith
2024-08-22  0:33               ` Ping-Ke Shih
2024-08-22  6:58                 ` Kalle Valo
2024-08-22 14:04                   ` Bitterblue Smith
2024-08-11 20:55 ` [PATCH 04/20] wifi: rtw88: Extend the init table parsing for RTL8812AU Bitterblue Smith
2024-08-15  6:27   ` Ping-Ke Shih
2024-08-11 20:57 ` [PATCH 05/20] wifi: rtw88: Allow rtw_chip_info.ltecoex_addr to be NULL Bitterblue Smith
2024-08-15  6:33   ` Ping-Ke Shih
2024-08-19 17:53     ` Bitterblue Smith
2024-08-20  1:15       ` Ping-Ke Shih
2024-08-11 20:57 ` [PATCH 06/20] wifi: rtw88: Let each driver control the power on/off process Bitterblue Smith
2024-08-11 20:59 ` [PATCH 07/20] wifi: rtw88: Enable data rate fallback for older chips Bitterblue Smith
2024-08-15  6:46   ` Ping-Ke Shih
2024-08-11 21:00 ` [PATCH 08/20] wifi: rtw88: Make txagc_remnant_ofdm an array Bitterblue Smith
2024-08-15  6:50   ` Ping-Ke Shih
2024-08-11 21:00 ` [PATCH 09/20] wifi: rtw88: Support TX page sizes bigger than 128 Bitterblue Smith
2024-08-15  6:52   ` Ping-Ke Shih
2024-08-11 21:01 ` [PATCH 10/20] wifi: rtw88: Move pwr_track_tbl to struct rtw_rfe_def Bitterblue Smith
2024-08-15  7:00   ` Ping-Ke Shih
2024-08-11 21:02 ` [PATCH 11/20] wifi: rtw88: usb: Set pkt_info.ls for the reserved page Bitterblue Smith
2024-08-15  7:07   ` Ping-Ke Shih
2024-08-11 21:02 ` [PATCH 12/20] wifi: rtw88: Detect beacon loss with chips other than 8822c Bitterblue Smith
2024-08-15  7:16   ` Ping-Ke Shih
2024-08-11 21:03 ` [PATCH 13/20] wifi: rtw88: coex: Support chips without a scoreboard Bitterblue Smith
2024-08-15  7:19   ` Ping-Ke Shih
2024-08-11 21:04 ` [PATCH 14/20] wifi: rtw88: 8821a: Regularly ask for BT info updates Bitterblue Smith
2024-08-15  7:26   ` Ping-Ke Shih
2024-08-11 21:05 ` [PATCH 15/20] wifi: rtw88: 8812a: Mitigate beacon loss Bitterblue Smith
2024-08-15  7:31   ` Ping-Ke Shih
2024-08-11 21:06 ` [PATCH 16/20] wifi: rtw88: Add rtw8812a_table.{c,h} Bitterblue Smith
2024-08-15  7:53   ` Ping-Ke Shih [this message]
2024-08-16  1:19   ` Ping-Ke Shih
2024-08-11 21:06 ` [PATCH 17/20] wifi: rtw88: Add rtw8821a_table.{c,h} Bitterblue Smith
2024-08-15  7:55   ` Ping-Ke Shih
2024-08-11 21:07 ` [PATCH 18/20] wifi: rtw88: Add rtw8821a.{c,h} Bitterblue Smith
2024-08-16  6:06   ` Ping-Ke Shih
2024-08-27 17:52     ` Bitterblue Smith
2024-09-10  2:30       ` Ping-Ke Shih
2024-09-12 15:59         ` Bitterblue Smith
2024-09-13  1:50           ` Ping-Ke Shih
2024-09-21 22:47             ` Bitterblue Smith
2024-09-23  5:47               ` Ping-Ke Shih
2024-09-23  5:58                 ` Ping-Ke Shih
2024-09-24 21:19                 ` Bitterblue Smith
2024-09-25  1:25                   ` Ping-Ke Shih
2024-09-25 11:28                     ` Bitterblue Smith
2024-09-26  2:27                       ` Ping-Ke Shih
2024-09-26 16:41                         ` Bitterblue Smith
2024-08-11 21:08 ` [PATCH 19/20] wifi: rtw88: Add rtw8821au.c and rtw8812au.c Bitterblue Smith
2024-08-15  7:58   ` Ping-Ke Shih
2024-08-11 21:11 ` [PATCH 20/20] wifi: rtw88: Enable the new RTL8821AU/RTL8812AU drivers Bitterblue Smith
2024-08-15  8:01   ` 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=6499c9c2c6db41e9ba8c26c880ea42b4@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rtl8821cerfe2@gmail.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 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).