* [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2
@ 2024-12-18 0:13 Bitterblue Smith
2024-12-18 0:16 ` [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0 Bitterblue Smith
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Bitterblue Smith @ 2024-12-18 0:13 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org; +Cc: Ping-Ke Shih
RF front end type 2 exists in the wild and can be treated like types
0 and 1.
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
---
drivers/net/wireless/realtek/rtw88/rtw8812a.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8812a.c b/drivers/net/wireless/realtek/rtw88/rtw8812a.c
index 482edd31823d..d8f0ed70777f 100644
--- a/drivers/net/wireless/realtek/rtw88/rtw8812a.c
+++ b/drivers/net/wireless/realtek/rtw88/rtw8812a.c
@@ -985,6 +985,9 @@ static const struct rtw_rfe_def rtw8812a_rfe_defs[] = {
[1] = { .phy_pg_tbl = &rtw8812a_bb_pg_tbl,
.txpwr_lmt_tbl = &rtw8812a_txpwr_lmt_tbl,
.pwr_track_tbl = &rtw8812a_rtw_pwr_track_tbl, },
+ [2] = { .phy_pg_tbl = &rtw8812a_bb_pg_tbl,
+ .txpwr_lmt_tbl = &rtw8812a_txpwr_lmt_tbl,
+ .pwr_track_tbl = &rtw8812a_rtw_pwr_track_tbl, },
[3] = { .phy_pg_tbl = &rtw8812a_bb_pg_rfe3_tbl,
.txpwr_lmt_tbl = &rtw8812a_txpwr_lmt_tbl,
.pwr_track_tbl = &rtw8812a_rtw_pwr_track_rfe3_tbl, },
--
2.47.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0
2024-12-18 0:13 [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Bitterblue Smith
@ 2024-12-18 0:16 ` Bitterblue Smith
2024-12-19 5:30 ` Ping-Ke Shih
2024-12-19 5:29 ` [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Ping-Ke Shih
2024-12-23 7:59 ` Ping-Ke Shih
2 siblings, 1 reply; 5+ messages in thread
From: Bitterblue Smith @ 2024-12-18 0:16 UTC (permalink / raw)
To: linux-wireless@vger.kernel.org; +Cc: Ping-Ke Shih
Some RTL8812AU devices fail to probe:
[ 12.478774] rtw_8812au 1-1.3:1.0: failed to dump efuse logical map
[ 12.487712] rtw_8812au 1-1.3:1.0: failed to setup chip efuse info
[ 12.487742] rtw_8812au 1-1.3:1.0: failed to setup chip information
[ 12.491077] rtw_8812au: probe of 1-1.3:1.0 failed with error -22
It turns out these chips don't need to "protect" any bytes at the end of
the efuse.
The original value of 96 was copied from rtw8821c.c.
No one reported any failures with RTL8821AU yet, but the vendor driver
uses the same efuse reading code for both chips.
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
---
drivers/net/wireless/realtek/rtw88/rtw8812a.c | 2 +-
drivers/net/wireless/realtek/rtw88/rtw8821a.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8812a.c b/drivers/net/wireless/realtek/rtw88/rtw8812a.c
index d8f0ed70777f..21795286a1a0 100644
--- a/drivers/net/wireless/realtek/rtw88/rtw8812a.c
+++ b/drivers/net/wireless/realtek/rtw88/rtw8812a.c
@@ -1027,7 +1027,7 @@ const struct rtw_chip_info rtw8812a_hw_spec = {
.rx_buf_desc_sz = 8,
.phy_efuse_size = 512,
.log_efuse_size = 512,
- .ptct_efuse_size = 96 + 1, /* TODO or just 18? */
+ .ptct_efuse_size = 0,
.txff_size = 131072,
.rxff_size = 16128,
.rsvd_drv_pg_num = 9,
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8821a.c b/drivers/net/wireless/realtek/rtw88/rtw8821a.c
index db242c9ad68f..dafab2af33bc 100644
--- a/drivers/net/wireless/realtek/rtw88/rtw8821a.c
+++ b/drivers/net/wireless/realtek/rtw88/rtw8821a.c
@@ -1118,7 +1118,7 @@ const struct rtw_chip_info rtw8821a_hw_spec = {
.rx_buf_desc_sz = 8,
.phy_efuse_size = 512,
.log_efuse_size = 512,
- .ptct_efuse_size = 96 + 1, /* TODO or just 18? */
+ .ptct_efuse_size = 0,
.txff_size = 65536,
.rxff_size = 16128,
.rsvd_drv_pg_num = 8,
--
2.47.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2
2024-12-18 0:13 [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Bitterblue Smith
2024-12-18 0:16 ` [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0 Bitterblue Smith
@ 2024-12-19 5:29 ` Ping-Ke Shih
2024-12-23 7:59 ` Ping-Ke Shih
2 siblings, 0 replies; 5+ messages in thread
From: Ping-Ke Shih @ 2024-12-19 5:29 UTC (permalink / raw)
To: Bitterblue Smith, linux-wireless@vger.kernel.org
Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> RF front end type 2 exists in the wild and can be treated like types
> 0 and 1.
>
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0
2024-12-18 0:16 ` [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0 Bitterblue Smith
@ 2024-12-19 5:30 ` Ping-Ke Shih
0 siblings, 0 replies; 5+ messages in thread
From: Ping-Ke Shih @ 2024-12-19 5:30 UTC (permalink / raw)
To: Bitterblue Smith, linux-wireless@vger.kernel.org
Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> Some RTL8812AU devices fail to probe:
>
> [ 12.478774] rtw_8812au 1-1.3:1.0: failed to dump efuse logical map
> [ 12.487712] rtw_8812au 1-1.3:1.0: failed to setup chip efuse info
> [ 12.487742] rtw_8812au 1-1.3:1.0: failed to setup chip information
> [ 12.491077] rtw_8812au: probe of 1-1.3:1.0 failed with error -22
>
> It turns out these chips don't need to "protect" any bytes at the end of
> the efuse.
>
> The original value of 96 was copied from rtw8821c.c.
>
> No one reported any failures with RTL8821AU yet, but the vendor driver
> uses the same efuse reading code for both chips.
>
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2
2024-12-18 0:13 [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Bitterblue Smith
2024-12-18 0:16 ` [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0 Bitterblue Smith
2024-12-19 5:29 ` [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Ping-Ke Shih
@ 2024-12-23 7:59 ` Ping-Ke Shih
2 siblings, 0 replies; 5+ messages in thread
From: Ping-Ke Shih @ 2024-12-23 7:59 UTC (permalink / raw)
To: Bitterblue Smith, linux-wireless@vger.kernel.org; +Cc: Ping-Ke Shih
Bitterblue Smith <rtl8821cerfe2@gmail.com> wrote:
> RF front end type 2 exists in the wild and can be treated like types
> 0 and 1.
>
> Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
> Acked-by: Ping-Ke Shih <pkshih@realtek.com>
2 patch(es) applied to rtw-next branch of rtw.git, thanks.
59ab27a9f20f wifi: rtw88: 8812a: Support RFE type 2
74a72c367573 wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0
---
https://github.com/pkshih/rtw.git
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-23 8:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 0:13 [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Bitterblue Smith
2024-12-18 0:16 ` [PATCH 2/2] wifi: rtw88: 8821a/8812a: Set ptct_efuse_size to 0 Bitterblue Smith
2024-12-19 5:30 ` Ping-Ke Shih
2024-12-19 5:29 ` [PATCH 1/2] wifi: rtw88: 8812a: Support RFE type 2 Ping-Ke Shih
2024-12-23 7:59 ` Ping-Ke Shih
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).