mbox series

[0/3] ath11k: add support muti-type regdb data for WCN6855

Message ID 20220319023543.14288-1-quic_wgong@quicinc.com (mailing list archive)
Headers show
Series ath11k: add support muti-type regdb data for WCN6855 | expand

Message

Wen Gong March 19, 2022, 2:35 a.m. UTC
Add enum value ATH11K_BD_IE_REGDB and enum type ath11k_bd_ie_regdb_type
for regdb data, the board-2.bin will include both board data and regdb
files.

Wen Gong (3):
  ath11k: remove unused ATH11K_BD_IE_BOARD_EXT
  ath11k: disable regdb support for QCA6390
  ath11k: add support to search regdb data in board-2.bin for WCN6855

 drivers/net/wireless/ath/ath11k/core.c | 81 ++++++++++++++++++--------
 drivers/net/wireless/ath/ath11k/hw.h   | 20 ++++++-
 2 files changed, 75 insertions(+), 26 deletions(-)


base-commit: d845cf007bdf8b2bf41522e1ecd0eb804e553d57

Comments

Kalle Valo March 21, 2022, 11:13 a.m. UTC | #1
Wen Gong <quic_wgong@quicinc.com> writes:

> Add enum value ATH11K_BD_IE_REGDB and enum type ath11k_bd_ie_regdb_type
> for regdb data, the board-2.bin will include both board data and regdb
> files.

In the pending branch this conflicted with your varian changes:

<<<<<<< current
		ath11k_dbg(ab, ATH11K_DBG_BOOT,
			   "failed to fetch board data for %s from %s\n",
=======
		ath11k_err(ab,
			   "failed to fetch %s for %s from %s\n",
			   ath11k_bd_ie_type_str(ie_id_match),
>>>>>>> patched

I used ath11k_err() for now, but I suspect I need to change it to
ath11k_dbg(). Will no better after some testing and review.

--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -954,7 +954,10 @@ int ath11k_core_fetch_bdf(struct ath11k_base *ab, struct ath11k_board_data *bd)
                return ret;
        }
 
-       ret = ath11k_core_fetch_board_data_api_n(ab, bd, fallback_boardname);
+       ret = ath11k_core_fetch_board_data_api_n(ab, bd, fallback_boardname,
+                                                ATH11K_BD_IE_BOARD,
+                                                ATH11K_BD_IE_BOARD_NAME,
+                                                ATH11K_BD_IE_BOARD_DATA);
        if (!ret)
                goto success;

This was an easy compilation fix.