mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
@ 2026-10-29 11:11 Krzysztof Kozlowski
  2026-10-29 19:54 ` Jeff Johnson
  2026-10-30  6:47 ` kernel test robot
  0 siblings, 2 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-29 11:11 UTC (permalink / raw)
  To: Jeff Johnson, linux-wireless, ath10k, linux-kernel; +Cc: Krzysztof Kozlowski

From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

'wlfw_pin_connect_result_ind_msg_v01_ei' and
'wlfw_initiate_cal_download_ind_msg_v01_ei' are not used anywhere.
Dropping them allows to remove bunch of other code referenced purely by
these ararys.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../net/wireless/ath/ath10k/qmi_wlfw_v01.c    | 826 ------------------
 .../net/wireless/ath/ath10k/qmi_wlfw_v01.h    | 249 ------
 2 files changed, 1075 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
index 279aeb2a7dbc..dc0f7e353349 100644
--- a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
+++ b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
@@ -569,64 +569,6 @@ const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[] = {
 	{}
 };
 
-const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   pwr_pin_result_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   pwr_pin_result),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   phy_io_pin_result_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   phy_io_pin_result),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   rf_pin_result_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   rf_pin_result),
-	},
-	{}
-};
-
 const struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
 	{
 		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
@@ -1148,302 +1090,6 @@ const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
 	{}
 };
 
-const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_initiate_cal_download_ind_msg_v01,
-					   cal_id),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   valid),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   file_id_valid),
-	},
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   file_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   total_size_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   total_size),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   seg_id_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   seg_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   data_valid),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   data),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   end_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   end),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_cal_download_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_initiate_cal_update_ind_msg_v01,
-					   cal_id),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_initiate_cal_update_ind_msg_v01,
-					   total_size),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_cal_update_req_msg_v01,
-					   cal_id),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_cal_update_req_msg_v01,
-					   seg_id),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   file_id_valid),
-	},
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   file_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   total_size_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   total_size),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   seg_id_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   seg_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   data_valid),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   data),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   end_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   end),
-	},
-	{}
-};
-
 const struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
 	{
 		.data_type      = QMI_UNSIGNED_8_BYTE,
@@ -1553,195 +1199,6 @@ const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
 	{}
 };
 
-const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
-					   offset),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
-					   mem_type),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x03,
-		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
-					   data_len),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   data_valid),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   data),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   offset),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   mem_type),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x03,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x03,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   data),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_write_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_vbatt_req_msg_v01,
-					   voltage_uv),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_vbatt_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_mac_addr_req_msg_v01,
-					   mac_addr_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAC_ADDR_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = STATIC_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_mac_addr_req_msg_v01,
-					   mac_addr),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_mac_addr_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
 const struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
 	{
 		.data_type      = QMI_OPT_FLAG,
@@ -2024,286 +1481,3 @@ const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
 	},
 	{}
 };
-
-const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_request_mem_ind_msg_v01,
-					   mem_seg_len),
-	},
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
-		.elem_size      = sizeof(struct wlfw_mem_seg_s_v01),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_request_mem_ind_msg_v01,
-					   mem_seg),
-		.ei_array      = wlfw_mem_seg_s_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_respond_mem_req_msg_v01,
-					   mem_seg_len),
-	},
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
-		.elem_size      = sizeof(struct wlfw_mem_seg_resp_s_v01),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_respond_mem_req_msg_v01,
-					   mem_seg),
-		.ei_array      = wlfw_mem_seg_resp_s_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_respond_mem_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[] = {
-	{}
-};
-
-const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = {
-	{}
-};
-
-const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   cause_for_rejuvenation_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   cause_for_rejuvenation),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   requesting_sub_system_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   requesting_sub_system),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   line_number_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_2_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   line_number),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   function_name_valid),
-	},
-	{
-		.data_type      = QMI_STRING,
-		.elem_len       = QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1,
-		.elem_size      = sizeof(char),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   function_name),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
-	{}
-};
-
-const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_rejuvenate_ack_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_req_msg_v01,
-					   mask_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_req_msg_v01,
-					   mask),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   prev_mask_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   prev_mask),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   curr_mask_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   curr_mask),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_m3_info_req_msg_v01,
-					   addr),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_m3_info_req_msg_v01,
-					   size),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_m3_info_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_xo_cal_ind_msg_v01,
-					   xo_cal_data),
-	},
-	{}
-};
diff --git a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
index 8d4b929e8437..c0b2eaea4dbc 100644
--- a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
+++ b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
@@ -240,18 +240,6 @@ struct wlfw_msa_ready_ind_msg_v01 {
 #define WLFW_MSA_READY_IND_MSG_V01_MAX_MSG_LEN 0
 extern const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[];
 
-struct wlfw_pin_connect_result_ind_msg_v01 {
-	u8 pwr_pin_result_valid;
-	u32 pwr_pin_result;
-	u8 phy_io_pin_result_valid;
-	u32 phy_io_pin_result;
-	u8 rf_pin_result_valid;
-	u32 rf_pin_result;
-};
-
-#define WLFW_PIN_CONNECT_RESULT_IND_MSG_V01_MAX_MSG_LEN 21
-extern const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[];
-
 struct wlfw_wlan_mode_req_msg_v01 {
 	enum wlfw_driver_mode_enum_v01 mode;
 	u8 hw_debug_valid;
@@ -365,72 +353,6 @@ struct wlfw_cal_report_resp_msg_v01 {
 #define WLFW_CAL_REPORT_RESP_MSG_V01_MAX_MSG_LEN 7
 extern const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[];
 
-struct wlfw_initiate_cal_download_ind_msg_v01 {
-	enum wlfw_cal_temp_id_enum_v01 cal_id;
-};
-
-#define WLFW_INITIATE_CAL_DOWNLOAD_IND_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[];
-
-struct wlfw_cal_download_req_msg_v01 {
-	u8 valid;
-	u8 file_id_valid;
-	enum wlfw_cal_temp_id_enum_v01 file_id;
-	u8 total_size_valid;
-	u32 total_size;
-	u8 seg_id_valid;
-	u32 seg_id;
-	u8 data_valid;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_DATA_SIZE_V01];
-	u8 end_valid;
-	u8 end;
-};
-
-#define WLFW_CAL_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178
-extern const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[];
-
-struct wlfw_cal_download_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_CAL_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[];
-
-struct wlfw_initiate_cal_update_ind_msg_v01 {
-	enum wlfw_cal_temp_id_enum_v01 cal_id;
-	u32 total_size;
-};
-
-#define WLFW_INITIATE_CAL_UPDATE_IND_MSG_V01_MAX_MSG_LEN 14
-extern const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[];
-
-struct wlfw_cal_update_req_msg_v01 {
-	enum wlfw_cal_temp_id_enum_v01 cal_id;
-	u32 seg_id;
-};
-
-#define WLFW_CAL_UPDATE_REQ_MSG_V01_MAX_MSG_LEN 14
-extern const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[];
-
-struct wlfw_cal_update_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-	u8 file_id_valid;
-	enum wlfw_cal_temp_id_enum_v01 file_id;
-	u8 total_size_valid;
-	u32 total_size;
-	u8 seg_id_valid;
-	u32 seg_id;
-	u8 data_valid;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_DATA_SIZE_V01];
-	u8 end_valid;
-	u8 end;
-};
-
-#define WLFW_CAL_UPDATE_RESP_MSG_V01_MAX_MSG_LEN 6181
-extern const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[];
-
 struct wlfw_msa_info_req_msg_v01 {
 	u64 msa_addr;
 	u32 size;
@@ -477,71 +399,6 @@ struct wlfw_ini_resp_msg_v01 {
 #define WLFW_INI_RESP_MSG_V01_MAX_MSG_LEN 7
 extern const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[];
 
-struct wlfw_athdiag_read_req_msg_v01 {
-	u32 offset;
-	u32 mem_type;
-	u32 data_len;
-};
-
-#define WLFW_ATHDIAG_READ_REQ_MSG_V01_MAX_MSG_LEN 21
-extern const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[];
-
-struct wlfw_athdiag_read_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-	u8 data_valid;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01];
-};
-
-#define WLFW_ATHDIAG_READ_RESP_MSG_V01_MAX_MSG_LEN 6156
-extern const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[];
-
-struct wlfw_athdiag_write_req_msg_v01 {
-	u32 offset;
-	u32 mem_type;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01];
-};
-
-#define WLFW_ATHDIAG_WRITE_REQ_MSG_V01_MAX_MSG_LEN 6163
-extern const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[];
-
-struct wlfw_athdiag_write_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_ATHDIAG_WRITE_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[];
-
-struct wlfw_vbatt_req_msg_v01 {
-	u64 voltage_uv;
-};
-
-#define WLFW_VBATT_REQ_MSG_V01_MAX_MSG_LEN 11
-extern const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[];
-
-struct wlfw_vbatt_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_VBATT_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[];
-
-struct wlfw_mac_addr_req_msg_v01 {
-	u8 mac_addr_valid;
-	u8 mac_addr[QMI_WLFW_MAC_ADDR_SIZE_V01];
-};
-
-#define WLFW_MAC_ADDR_REQ_MSG_V01_MAX_MSG_LEN 9
-extern const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[];
-
-struct wlfw_mac_addr_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_MAC_ADDR_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[];
-
 #define QMI_WLFW_MAX_NUM_GPIO_V01 32
 struct wlfw_host_cap_req_msg_v01 {
 	u8 daemon_support_valid;
@@ -584,110 +441,4 @@ struct wlfw_host_cap_resp_msg_v01 {
 #define WLFW_HOST_CAP_RESP_MSG_V01_MAX_MSG_LEN 7
 extern const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[];
 
-struct wlfw_request_mem_ind_msg_v01 {
-	u32 mem_seg_len;
-	struct wlfw_mem_seg_s_v01 mem_seg[QMI_WLFW_MAX_NUM_MEM_SEG_V01];
-};
-
-#define WLFW_REQUEST_MEM_IND_MSG_V01_MAX_MSG_LEN 564
-extern const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[];
-
-struct wlfw_respond_mem_req_msg_v01 {
-	u32 mem_seg_len;
-	struct wlfw_mem_seg_resp_s_v01 mem_seg[QMI_WLFW_MAX_NUM_MEM_SEG_V01];
-};
-
-#define WLFW_RESPOND_MEM_REQ_MSG_V01_MAX_MSG_LEN 260
-extern const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[];
-
-struct wlfw_respond_mem_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_RESPOND_MEM_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[];
-
-struct wlfw_mem_ready_ind_msg_v01 {
-	char placeholder;
-};
-
-#define WLFW_MEM_READY_IND_MSG_V01_MAX_MSG_LEN 0
-extern const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[];
-
-struct wlfw_fw_init_done_ind_msg_v01 {
-	char placeholder;
-};
-
-#define WLFW_FW_INIT_DONE_IND_MSG_V01_MAX_MSG_LEN 0
-extern const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[];
-
-struct wlfw_rejuvenate_ind_msg_v01 {
-	u8 cause_for_rejuvenation_valid;
-	u8 cause_for_rejuvenation;
-	u8 requesting_sub_system_valid;
-	u8 requesting_sub_system;
-	u8 line_number_valid;
-	u16 line_number;
-	u8 function_name_valid;
-	char function_name[QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1];
-};
-
-#define WLFW_REJUVENATE_IND_MSG_V01_MAX_MSG_LEN 144
-extern const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[];
-
-struct wlfw_rejuvenate_ack_req_msg_v01 {
-	char placeholder;
-};
-
-#define WLFW_REJUVENATE_ACK_REQ_MSG_V01_MAX_MSG_LEN 0
-extern const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[];
-
-struct wlfw_rejuvenate_ack_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_REJUVENATE_ACK_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[];
-
-struct wlfw_dynamic_feature_mask_req_msg_v01 {
-	u8 mask_valid;
-	u64 mask;
-};
-
-#define WLFW_DYNAMIC_FEATURE_MASK_REQ_MSG_V01_MAX_MSG_LEN 11
-extern const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[];
-
-struct wlfw_dynamic_feature_mask_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-	u8 prev_mask_valid;
-	u64 prev_mask;
-	u8 curr_mask_valid;
-	u64 curr_mask;
-};
-
-#define WLFW_DYNAMIC_FEATURE_MASK_RESP_MSG_V01_MAX_MSG_LEN 29
-extern const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[];
-
-struct wlfw_m3_info_req_msg_v01 {
-	u64 addr;
-	u32 size;
-};
-
-#define WLFW_M3_INFO_REQ_MSG_V01_MAX_MSG_LEN 18
-extern const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[];
-
-struct wlfw_m3_info_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_M3_INFO_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[];
-
-struct wlfw_xo_cal_ind_msg_v01 {
-	u8 xo_cal_data;
-};
-
-#define WLFW_XO_CAL_IND_MSG_V01_MAX_MSG_LEN 4
-extern const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[];
-
 #endif
-- 
2.53.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
  2026-10-29 11:11 [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays Krzysztof Kozlowski
@ 2026-10-29 19:54 ` Jeff Johnson
  2026-10-30  6:43   ` Krzysztof Kozlowski
  2026-10-30  6:47 ` kernel test robot
  1 sibling, 1 reply; 6+ messages in thread
From: Jeff Johnson @ 2026-10-29 19:54 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Jeff Johnson, linux-wireless, ath10k, linux-kernel
  Cc: Krzysztof Kozlowski

On 10/29/2026 4:11 AM, Krzysztof Kozlowski wrote:
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> 'wlfw_pin_connect_result_ind_msg_v01_ei' and
> 'wlfw_initiate_cal_download_ind_msg_v01_ei' are not used anywhere.
> Dropping them allows to remove bunch of other code referenced purely by
> these ararys.

s/ararys/arrays/

this removes a lot of stuff, by review agent says there is more that can be
removed...

  qmi_wlfw_v01.c
  - static const … wlfw_mem_seg_s_v01_ei[] — line 188
  - static const … wlfw_mem_seg_resp_s_v01_ei[] — line 229

  qmi_wlfw_v01.h (removable once the two .c arrays above are gone)
  - struct wlfw_mem_seg_s_v01 — line 161
  - struct wlfw_mem_seg_resp_s_v01 — line 168

  qmi_wlfw_v01.h — now-orphaned size constants (0 refs)
  - #define QMI_WLFW_MAX_NUM_MEM_SEG_V01 — line 64
  - #define QMI_WLFW_FUNCTION_NAME_LEN_V01 — line 67
  - #define QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01 — line 70
  - #define QMI_WLFW_MAC_ADDR_SIZE_V01 — line 76


> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../net/wireless/ath/ath10k/qmi_wlfw_v01.c    | 826 ------------------
>  .../net/wireless/ath/ath10k/qmi_wlfw_v01.h    | 249 ------
>  2 files changed, 1075 deletions(-)
> 
> diff --git a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
> index 279aeb2a7dbc..dc0f7e353349 100644
> --- a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
> +++ b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
> @@ -569,64 +569,6 @@ const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[] = {
>  	{}
>  };
>  
> -const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
> -					   pwr_pin_result_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
> -					   pwr_pin_result),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
> -					   phy_io_pin_result_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
> -					   phy_io_pin_result),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
> -					   rf_pin_result_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
> -					   rf_pin_result),
> -	},
> -	{}
> -};
> -
>  const struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
>  	{
>  		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
> @@ -1148,302 +1090,6 @@ const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
>  	{}
>  };
>  
> -const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_initiate_cal_download_ind_msg_v01,
> -					   cal_id),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   valid),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   file_id_valid),
> -	},
> -	{
> -		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   file_id),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   total_size_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   total_size),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   seg_id_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   seg_id),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   data_valid),
> -	},
> -	{
> -		.data_type      = QMI_DATA_LEN,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u16),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   data_len),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = QMI_WLFW_MAX_DATA_SIZE_V01,
> -		.elem_size      = sizeof(u8),
> -		.array_type       = VAR_LEN_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   data),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x14,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   end_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x14,
> -		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
> -					   end),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_cal_download_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_initiate_cal_update_ind_msg_v01,
> -					   cal_id),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_initiate_cal_update_ind_msg_v01,
> -					   total_size),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_cal_update_req_msg_v01,
> -					   cal_id),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_cal_update_req_msg_v01,
> -					   seg_id),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   file_id_valid),
> -	},
> -	{
> -		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   file_id),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   total_size_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   total_size),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   seg_id_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   seg_id),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   data_valid),
> -	},
> -	{
> -		.data_type      = QMI_DATA_LEN,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u16),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   data_len),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = QMI_WLFW_MAX_DATA_SIZE_V01,
> -		.elem_size      = sizeof(u8),
> -		.array_type       = VAR_LEN_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   data),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x14,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   end_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x14,
> -		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
> -					   end),
> -	},
> -	{}
> -};
> -
>  const struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
>  	{
>  		.data_type      = QMI_UNSIGNED_8_BYTE,
> @@ -1553,195 +1199,6 @@ const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
>  	{}
>  };
>  
> -const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
> -					   offset),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
> -					   mem_type),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x03,
> -		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
> -					   data_len),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
> -					   data_valid),
> -	},
> -	{
> -		.data_type      = QMI_DATA_LEN,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u16),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
> -					   data_len),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
> -		.elem_size      = sizeof(u8),
> -		.array_type       = VAR_LEN_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
> -					   data),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
> -					   offset),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
> -					   mem_type),
> -	},
> -	{
> -		.data_type      = QMI_DATA_LEN,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u16),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x03,
> -		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
> -					   data_len),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
> -		.elem_size      = sizeof(u8),
> -		.array_type       = VAR_LEN_ARRAY,
> -		.tlv_type       = 0x03,
> -		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
> -					   data),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_athdiag_write_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_UNSIGNED_8_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u64),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_vbatt_req_msg_v01,
> -					   voltage_uv),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_vbatt_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_mac_addr_req_msg_v01,
> -					   mac_addr_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = QMI_WLFW_MAC_ADDR_SIZE_V01,
> -		.elem_size      = sizeof(u8),
> -		.array_type       = STATIC_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_mac_addr_req_msg_v01,
> -					   mac_addr),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_mac_addr_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
>  const struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
>  	{
>  		.data_type      = QMI_OPT_FLAG,
> @@ -2024,286 +1481,3 @@ const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
>  	},
>  	{}
>  };
> -
> -const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_DATA_LEN,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_request_mem_ind_msg_v01,
> -					   mem_seg_len),
> -	},
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
> -		.elem_size      = sizeof(struct wlfw_mem_seg_s_v01),
> -		.array_type       = VAR_LEN_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_request_mem_ind_msg_v01,
> -					   mem_seg),
> -		.ei_array      = wlfw_mem_seg_s_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_DATA_LEN,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_respond_mem_req_msg_v01,
> -					   mem_seg_len),
> -	},
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
> -		.elem_size      = sizeof(struct wlfw_mem_seg_resp_s_v01),
> -		.array_type       = VAR_LEN_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_respond_mem_req_msg_v01,
> -					   mem_seg),
> -		.ei_array      = wlfw_mem_seg_resp_s_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_respond_mem_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[] = {
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = {
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   cause_for_rejuvenation_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   cause_for_rejuvenation),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   requesting_sub_system_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   requesting_sub_system),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   line_number_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_2_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u16),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x12,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   line_number),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   function_name_valid),
> -	},
> -	{
> -		.data_type      = QMI_STRING,
> -		.elem_len       = QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1,
> -		.elem_size      = sizeof(char),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x13,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
> -					   function_name),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_rejuvenate_ack_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_req_msg_v01,
> -					   mask_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_8_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u64),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_req_msg_v01,
> -					   mask),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
> -					   prev_mask_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_8_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u64),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x10,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
> -					   prev_mask),
> -	},
> -	{
> -		.data_type      = QMI_OPT_FLAG,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
> -					   curr_mask_valid),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_8_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u64),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x11,
> -		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
> -					   curr_mask),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_UNSIGNED_8_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u64),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_m3_info_req_msg_v01,
> -					   addr),
> -	},
> -	{
> -		.data_type      = QMI_UNSIGNED_4_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u32),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_m3_info_req_msg_v01,
> -					   size),
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_STRUCT,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(struct qmi_response_type_v01),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x02,
> -		.offset         = offsetof(struct wlfw_m3_info_resp_msg_v01,
> -					   resp),
> -		.ei_array      = qmi_response_type_v01_ei,
> -	},
> -	{}
> -};
> -
> -const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = {
> -	{
> -		.data_type      = QMI_UNSIGNED_1_BYTE,
> -		.elem_len       = 1,
> -		.elem_size      = sizeof(u8),
> -		.array_type     = NO_ARRAY,
> -		.tlv_type       = 0x01,
> -		.offset         = offsetof(struct wlfw_xo_cal_ind_msg_v01,
> -					   xo_cal_data),
> -	},
> -	{}
> -};
> diff --git a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
> index 8d4b929e8437..c0b2eaea4dbc 100644
> --- a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
> +++ b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
> @@ -240,18 +240,6 @@ struct wlfw_msa_ready_ind_msg_v01 {
>  #define WLFW_MSA_READY_IND_MSG_V01_MAX_MSG_LEN 0
>  extern const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[];
>  
> -struct wlfw_pin_connect_result_ind_msg_v01 {
> -	u8 pwr_pin_result_valid;
> -	u32 pwr_pin_result;
> -	u8 phy_io_pin_result_valid;
> -	u32 phy_io_pin_result;
> -	u8 rf_pin_result_valid;
> -	u32 rf_pin_result;
> -};
> -
> -#define WLFW_PIN_CONNECT_RESULT_IND_MSG_V01_MAX_MSG_LEN 21
> -extern const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[];
> -
>  struct wlfw_wlan_mode_req_msg_v01 {
>  	enum wlfw_driver_mode_enum_v01 mode;
>  	u8 hw_debug_valid;
> @@ -365,72 +353,6 @@ struct wlfw_cal_report_resp_msg_v01 {
>  #define WLFW_CAL_REPORT_RESP_MSG_V01_MAX_MSG_LEN 7
>  extern const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[];
>  
> -struct wlfw_initiate_cal_download_ind_msg_v01 {
> -	enum wlfw_cal_temp_id_enum_v01 cal_id;
> -};
> -
> -#define WLFW_INITIATE_CAL_DOWNLOAD_IND_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[];
> -
> -struct wlfw_cal_download_req_msg_v01 {
> -	u8 valid;
> -	u8 file_id_valid;
> -	enum wlfw_cal_temp_id_enum_v01 file_id;
> -	u8 total_size_valid;
> -	u32 total_size;
> -	u8 seg_id_valid;
> -	u32 seg_id;
> -	u8 data_valid;
> -	u32 data_len;
> -	u8 data[QMI_WLFW_MAX_DATA_SIZE_V01];
> -	u8 end_valid;
> -	u8 end;
> -};
> -
> -#define WLFW_CAL_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178
> -extern const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[];
> -
> -struct wlfw_cal_download_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_CAL_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[];
> -
> -struct wlfw_initiate_cal_update_ind_msg_v01 {
> -	enum wlfw_cal_temp_id_enum_v01 cal_id;
> -	u32 total_size;
> -};
> -
> -#define WLFW_INITIATE_CAL_UPDATE_IND_MSG_V01_MAX_MSG_LEN 14
> -extern const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[];
> -
> -struct wlfw_cal_update_req_msg_v01 {
> -	enum wlfw_cal_temp_id_enum_v01 cal_id;
> -	u32 seg_id;
> -};
> -
> -#define WLFW_CAL_UPDATE_REQ_MSG_V01_MAX_MSG_LEN 14
> -extern const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[];
> -
> -struct wlfw_cal_update_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -	u8 file_id_valid;
> -	enum wlfw_cal_temp_id_enum_v01 file_id;
> -	u8 total_size_valid;
> -	u32 total_size;
> -	u8 seg_id_valid;
> -	u32 seg_id;
> -	u8 data_valid;
> -	u32 data_len;
> -	u8 data[QMI_WLFW_MAX_DATA_SIZE_V01];
> -	u8 end_valid;
> -	u8 end;
> -};
> -
> -#define WLFW_CAL_UPDATE_RESP_MSG_V01_MAX_MSG_LEN 6181
> -extern const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[];
> -
>  struct wlfw_msa_info_req_msg_v01 {
>  	u64 msa_addr;
>  	u32 size;
> @@ -477,71 +399,6 @@ struct wlfw_ini_resp_msg_v01 {
>  #define WLFW_INI_RESP_MSG_V01_MAX_MSG_LEN 7
>  extern const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[];
>  
> -struct wlfw_athdiag_read_req_msg_v01 {
> -	u32 offset;
> -	u32 mem_type;
> -	u32 data_len;
> -};
> -
> -#define WLFW_ATHDIAG_READ_REQ_MSG_V01_MAX_MSG_LEN 21
> -extern const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[];
> -
> -struct wlfw_athdiag_read_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -	u8 data_valid;
> -	u32 data_len;
> -	u8 data[QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01];
> -};
> -
> -#define WLFW_ATHDIAG_READ_RESP_MSG_V01_MAX_MSG_LEN 6156
> -extern const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[];
> -
> -struct wlfw_athdiag_write_req_msg_v01 {
> -	u32 offset;
> -	u32 mem_type;
> -	u32 data_len;
> -	u8 data[QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01];
> -};
> -
> -#define WLFW_ATHDIAG_WRITE_REQ_MSG_V01_MAX_MSG_LEN 6163
> -extern const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[];
> -
> -struct wlfw_athdiag_write_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_ATHDIAG_WRITE_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[];
> -
> -struct wlfw_vbatt_req_msg_v01 {
> -	u64 voltage_uv;
> -};
> -
> -#define WLFW_VBATT_REQ_MSG_V01_MAX_MSG_LEN 11
> -extern const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[];
> -
> -struct wlfw_vbatt_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_VBATT_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[];
> -
> -struct wlfw_mac_addr_req_msg_v01 {
> -	u8 mac_addr_valid;
> -	u8 mac_addr[QMI_WLFW_MAC_ADDR_SIZE_V01];
> -};
> -
> -#define WLFW_MAC_ADDR_REQ_MSG_V01_MAX_MSG_LEN 9
> -extern const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[];
> -
> -struct wlfw_mac_addr_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_MAC_ADDR_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[];
> -
>  #define QMI_WLFW_MAX_NUM_GPIO_V01 32
>  struct wlfw_host_cap_req_msg_v01 {
>  	u8 daemon_support_valid;
> @@ -584,110 +441,4 @@ struct wlfw_host_cap_resp_msg_v01 {
>  #define WLFW_HOST_CAP_RESP_MSG_V01_MAX_MSG_LEN 7
>  extern const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[];
>  
> -struct wlfw_request_mem_ind_msg_v01 {
> -	u32 mem_seg_len;
> -	struct wlfw_mem_seg_s_v01 mem_seg[QMI_WLFW_MAX_NUM_MEM_SEG_V01];
> -};
> -
> -#define WLFW_REQUEST_MEM_IND_MSG_V01_MAX_MSG_LEN 564
> -extern const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[];
> -
> -struct wlfw_respond_mem_req_msg_v01 {
> -	u32 mem_seg_len;
> -	struct wlfw_mem_seg_resp_s_v01 mem_seg[QMI_WLFW_MAX_NUM_MEM_SEG_V01];
> -};
> -
> -#define WLFW_RESPOND_MEM_REQ_MSG_V01_MAX_MSG_LEN 260
> -extern const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[];
> -
> -struct wlfw_respond_mem_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_RESPOND_MEM_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[];
> -
> -struct wlfw_mem_ready_ind_msg_v01 {
> -	char placeholder;
> -};
> -
> -#define WLFW_MEM_READY_IND_MSG_V01_MAX_MSG_LEN 0
> -extern const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[];
> -
> -struct wlfw_fw_init_done_ind_msg_v01 {
> -	char placeholder;
> -};
> -
> -#define WLFW_FW_INIT_DONE_IND_MSG_V01_MAX_MSG_LEN 0
> -extern const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[];
> -
> -struct wlfw_rejuvenate_ind_msg_v01 {
> -	u8 cause_for_rejuvenation_valid;
> -	u8 cause_for_rejuvenation;
> -	u8 requesting_sub_system_valid;
> -	u8 requesting_sub_system;
> -	u8 line_number_valid;
> -	u16 line_number;
> -	u8 function_name_valid;
> -	char function_name[QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1];
> -};
> -
> -#define WLFW_REJUVENATE_IND_MSG_V01_MAX_MSG_LEN 144
> -extern const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[];
> -
> -struct wlfw_rejuvenate_ack_req_msg_v01 {
> -	char placeholder;
> -};
> -
> -#define WLFW_REJUVENATE_ACK_REQ_MSG_V01_MAX_MSG_LEN 0
> -extern const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[];
> -
> -struct wlfw_rejuvenate_ack_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_REJUVENATE_ACK_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[];
> -
> -struct wlfw_dynamic_feature_mask_req_msg_v01 {
> -	u8 mask_valid;
> -	u64 mask;
> -};
> -
> -#define WLFW_DYNAMIC_FEATURE_MASK_REQ_MSG_V01_MAX_MSG_LEN 11
> -extern const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[];
> -
> -struct wlfw_dynamic_feature_mask_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -	u8 prev_mask_valid;
> -	u64 prev_mask;
> -	u8 curr_mask_valid;
> -	u64 curr_mask;
> -};
> -
> -#define WLFW_DYNAMIC_FEATURE_MASK_RESP_MSG_V01_MAX_MSG_LEN 29
> -extern const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[];
> -
> -struct wlfw_m3_info_req_msg_v01 {
> -	u64 addr;
> -	u32 size;
> -};
> -
> -#define WLFW_M3_INFO_REQ_MSG_V01_MAX_MSG_LEN 18
> -extern const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[];
> -
> -struct wlfw_m3_info_resp_msg_v01 {
> -	struct qmi_response_type_v01 resp;
> -};
> -
> -#define WLFW_M3_INFO_RESP_MSG_V01_MAX_MSG_LEN 7
> -extern const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[];
> -
> -struct wlfw_xo_cal_ind_msg_v01 {
> -	u8 xo_cal_data;
> -};
> -
> -#define WLFW_XO_CAL_IND_MSG_V01_MAX_MSG_LEN 4
> -extern const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[];
> -
>  #endif


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
  2026-10-29 19:54 ` Jeff Johnson
@ 2026-10-30  6:43   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-30  6:43 UTC (permalink / raw)
  To: Jeff Johnson, Jeff Johnson, linux-wireless, ath10k, linux-kernel
  Cc: Krzysztof Kozlowski

On 29/10/2026 20:54, Jeff Johnson wrote:
> On 10/29/2026 4:11 AM, Krzysztof Kozlowski wrote:
>> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>>
>> 'wlfw_pin_connect_result_ind_msg_v01_ei' and
>> 'wlfw_initiate_cal_download_ind_msg_v01_ei' are not used anywhere.
>> Dropping them allows to remove bunch of other code referenced purely by
>> these ararys.
> 
> s/ararys/arrays/
> 
> this removes a lot of stuff, by review agent says there is more that can be
> removed...
> 
>   qmi_wlfw_v01.c
>   - static const … wlfw_mem_seg_s_v01_ei[] — line 188
>   - static const … wlfw_mem_seg_resp_s_v01_ei[] — line 229
> 
>   qmi_wlfw_v01.h (removable once the two .c arrays above are gone)
>   - struct wlfw_mem_seg_s_v01 — line 161
>   - struct wlfw_mem_seg_resp_s_v01 — line 168

I got LKP reports for these too.

> 
>   qmi_wlfw_v01.h — now-orphaned size constants (0 refs)
>   - #define QMI_WLFW_MAX_NUM_MEM_SEG_V01 — line 64
>   - #define QMI_WLFW_FUNCTION_NAME_LEN_V01 — line 67
>   - #define QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01 — line 70
>   - #define QMI_WLFW_MAC_ADDR_SIZE_V01 — line 76


Ack

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
  2026-10-29 11:11 [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays Krzysztof Kozlowski
  2026-10-29 19:54 ` Jeff Johnson
@ 2026-10-30  6:47 ` kernel test robot
  1 sibling, 0 replies; 6+ messages in thread
From: kernel test robot @ 2026-10-30  6:47 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Jeff Johnson, linux-wireless, ath10k, linux-kernel
  Cc: oe-kbuild-all, Krzysztof Kozlowski

Hi Krzysztof,

kernel test robot noticed the following build warnings:

[auto build test WARNING on ath/ath-next]
[also build test WARNING on wireless/main wireless-next/main linus/master v7.3 next-20261029]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Krzysztof-Kozlowski/wifi-ath10k-Drop-unused-qmi_elem_info-arrays/20261029-121128
base:   https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git ath-next
patch link:    https://lore.kernel.org/r/20261029111127.85147-2-krzysztof.kozlowski%40oss.qualcomm.com
patch subject: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20261030/202610301453.rMXyuD6F-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261030/202610301453.rMXyuD6F-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610301453.rMXyuD6F-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c:229:35: warning: 'wlfw_mem_seg_resp_s_v01_ei' defined but not used [-Wunused-const-variable=]
     229 | static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c:188:35: warning: 'wlfw_mem_seg_s_v01_ei' defined but not used [-Wunused-const-variable=]
     188 | static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
         |                                   ^~~~~~~~~~~~~~~~~~~~~


vim +/wlfw_mem_seg_resp_s_v01_ei +229 drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c

bc17d4b90cdd3e5 Govind Singh 2018-10-11  187  
11e1fcf2b494da8 Jeff Johnson 2022-09-14 @188  static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
bc17d4b90cdd3e5 Govind Singh 2018-10-11  189  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  190  		.data_type      = QMI_UNSIGNED_4_BYTE,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  191  		.elem_len       = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  192  		.elem_size      = sizeof(u32),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  193  		.array_type     = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  194  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  195  		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  196  					   size),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  197  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  198  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  199  		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  200  		.elem_len       = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  201  		.elem_size      = sizeof(enum wlfw_mem_type_enum_v01),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  202  		.array_type     = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  203  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  204  		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  205  					   type),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  206  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  207  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  208  		.data_type      = QMI_DATA_LEN,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  209  		.elem_len       = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  210  		.elem_size      = sizeof(u8),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  211  		.array_type     = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  212  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  213  		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  214  					   mem_cfg_len),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  215  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  216  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  217  		.data_type      = QMI_STRUCT,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  218  		.elem_len       = QMI_WLFW_MAX_NUM_MEM_CFG_V01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  219  		.elem_size      = sizeof(struct wlfw_mem_cfg_s_v01),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  220  		.array_type       = VAR_LEN_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  221  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  222  		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  223  					   mem_cfg),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  224  		.ei_array      = wlfw_mem_cfg_s_v01_ei,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  225  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  226  	{}
bc17d4b90cdd3e5 Govind Singh 2018-10-11  227  };
bc17d4b90cdd3e5 Govind Singh 2018-10-11  228  
11e1fcf2b494da8 Jeff Johnson 2022-09-14 @229  static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
bc17d4b90cdd3e5 Govind Singh 2018-10-11  230  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  231  		.data_type      = QMI_UNSIGNED_8_BYTE,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  232  		.elem_len       = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  233  		.elem_size      = sizeof(u64),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  234  		.array_type     = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  235  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  236  		.offset         = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  237  					   addr),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  238  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  239  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  240  		.data_type      = QMI_UNSIGNED_4_BYTE,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  241  		.elem_len       = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  242  		.elem_size      = sizeof(u32),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  243  		.array_type     = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  244  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  245  		.offset         = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  246  					   size),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  247  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  248  	{
bc17d4b90cdd3e5 Govind Singh 2018-10-11  249  		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  250  		.elem_len       = 1,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  251  		.elem_size      = sizeof(enum wlfw_mem_type_enum_v01),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  252  		.array_type     = NO_ARRAY,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  253  		.tlv_type       = 0,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  254  		.offset         = offsetof(struct wlfw_mem_seg_resp_s_v01,
bc17d4b90cdd3e5 Govind Singh 2018-10-11  255  					   type),
bc17d4b90cdd3e5 Govind Singh 2018-10-11  256  	},
bc17d4b90cdd3e5 Govind Singh 2018-10-11  257  	{}
bc17d4b90cdd3e5 Govind Singh 2018-10-11  258  };
bc17d4b90cdd3e5 Govind Singh 2018-10-11  259  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
  2026-10-30  7:19 Krzysztof Kozlowski
@ 2026-10-30  7:34 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-30  7:34 UTC (permalink / raw)
  To: Jeff Johnson, linux-wireless, ath10k, linux-kernel

On 30/10/2026 08:19, Krzysztof Kozlowski wrote:
> 'wlfw_pin_connect_result_ind_msg_v01_ei' and
> 'wlfw_initiate_cal_download_ind_msg_v01_ei' are not used anywhere.
> Dropping them allows to remove bunch of other code referenced purely by
> these ararys.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> 
> ---
> 
> Changes in v2:
> 1. Fix commit author.
> 2. Drop more stuff (LKP, Jeff).
> ---

-ENOCOFFEE, Subject misses v2.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays
@ 2026-10-30  7:19 Krzysztof Kozlowski
  2026-10-30  7:34 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-10-30  7:19 UTC (permalink / raw)
  To: Jeff Johnson, linux-wireless, ath10k, linux-kernel; +Cc: Krzysztof Kozlowski

'wlfw_pin_connect_result_ind_msg_v01_ei' and
'wlfw_initiate_cal_download_ind_msg_v01_ei' are not used anywhere.
Dropping them allows to remove bunch of other code referenced purely by
these ararys.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

---

Changes in v2:
1. Fix commit author.
2. Drop more stuff (LKP, Jeff).
---
 .../net/wireless/ath/ath10k/qmi_wlfw_v01.c    | 929 ------------------
 .../net/wireless/ath/ath10k/qmi_wlfw_v01.h    | 278 ------
 2 files changed, 1207 deletions(-)

diff --git a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
index 279aeb2a7dbc..6aaa36b5f92b 100644
--- a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
+++ b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c
@@ -154,109 +154,6 @@ static const struct qmi_elem_info wlfw_memory_region_info_s_v01_ei[] = {
 	{}
 };
 
-static const struct qmi_elem_info wlfw_mem_cfg_s_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_cfg_s_v01,
-					   offset),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_cfg_s_v01,
-					   size),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_cfg_s_v01,
-					   secure_flag),
-	},
-	{}
-};
-
-static const struct qmi_elem_info wlfw_mem_seg_s_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
-					   size),
-	},
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_mem_type_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
-					   type),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
-					   mem_cfg_len),
-	},
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = QMI_WLFW_MAX_NUM_MEM_CFG_V01,
-		.elem_size      = sizeof(struct wlfw_mem_cfg_s_v01),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_s_v01,
-					   mem_cfg),
-		.ei_array      = wlfw_mem_cfg_s_v01_ei,
-	},
-	{}
-};
-
-static const struct qmi_elem_info wlfw_mem_seg_resp_s_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_resp_s_v01,
-					   addr),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_resp_s_v01,
-					   size),
-	},
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_mem_type_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0,
-		.offset         = offsetof(struct wlfw_mem_seg_resp_s_v01,
-					   type),
-	},
-	{}
-};
-
 static const struct qmi_elem_info wlfw_rf_chip_info_s_v01_ei[] = {
 	{
 		.data_type      = QMI_UNSIGNED_4_BYTE,
@@ -569,64 +466,6 @@ const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[] = {
 	{}
 };
 
-const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   pwr_pin_result_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   pwr_pin_result),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   phy_io_pin_result_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   phy_io_pin_result),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   rf_pin_result_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_pin_connect_result_ind_msg_v01,
-					   rf_pin_result),
-	},
-	{}
-};
-
 const struct qmi_elem_info wlfw_wlan_mode_req_msg_v01_ei[] = {
 	{
 		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
@@ -1148,302 +987,6 @@ const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[] = {
 	{}
 };
 
-const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_initiate_cal_download_ind_msg_v01,
-					   cal_id),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   valid),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   file_id_valid),
-	},
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   file_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   total_size_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   total_size),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   seg_id_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   seg_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   data_valid),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   data),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   end_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_download_req_msg_v01,
-					   end),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_cal_download_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_initiate_cal_update_ind_msg_v01,
-					   cal_id),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_initiate_cal_update_ind_msg_v01,
-					   total_size),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_cal_update_req_msg_v01,
-					   cal_id),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_cal_update_req_msg_v01,
-					   seg_id),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   file_id_valid),
-	},
-	{
-		.data_type      = QMI_SIGNED_4_BYTE_ENUM,
-		.elem_len       = 1,
-		.elem_size      = sizeof(enum wlfw_cal_temp_id_enum_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   file_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   total_size_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   total_size),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   seg_id_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   seg_id),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   data_valid),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   data),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   end_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x14,
-		.offset         = offsetof(struct wlfw_cal_update_resp_msg_v01,
-					   end),
-	},
-	{}
-};
-
 const struct qmi_elem_info wlfw_msa_info_req_msg_v01_ei[] = {
 	{
 		.data_type      = QMI_UNSIGNED_8_BYTE,
@@ -1553,195 +1096,6 @@ const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[] = {
 	{}
 };
 
-const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
-					   offset),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
-					   mem_type),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x03,
-		.offset         = offsetof(struct wlfw_athdiag_read_req_msg_v01,
-					   data_len),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   data_valid),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_athdiag_read_resp_msg_v01,
-					   data),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   offset),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   mem_type),
-	},
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x03,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   data_len),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x03,
-		.offset         = offsetof(struct wlfw_athdiag_write_req_msg_v01,
-					   data),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_athdiag_write_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_vbatt_req_msg_v01,
-					   voltage_uv),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_vbatt_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_mac_addr_req_msg_v01,
-					   mac_addr_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = QMI_WLFW_MAC_ADDR_SIZE_V01,
-		.elem_size      = sizeof(u8),
-		.array_type       = STATIC_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_mac_addr_req_msg_v01,
-					   mac_addr),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_mac_addr_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
 const struct qmi_elem_info wlfw_host_cap_req_msg_v01_ei[] = {
 	{
 		.data_type      = QMI_OPT_FLAG,
@@ -2024,286 +1378,3 @@ const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[] = {
 	},
 	{}
 };
-
-const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_request_mem_ind_msg_v01,
-					   mem_seg_len),
-	},
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
-		.elem_size      = sizeof(struct wlfw_mem_seg_s_v01),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_request_mem_ind_msg_v01,
-					   mem_seg),
-		.ei_array      = wlfw_mem_seg_s_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_DATA_LEN,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_respond_mem_req_msg_v01,
-					   mem_seg_len),
-	},
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = QMI_WLFW_MAX_NUM_MEM_SEG_V01,
-		.elem_size      = sizeof(struct wlfw_mem_seg_resp_s_v01),
-		.array_type       = VAR_LEN_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_respond_mem_req_msg_v01,
-					   mem_seg),
-		.ei_array      = wlfw_mem_seg_resp_s_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_respond_mem_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[] = {
-	{}
-};
-
-const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[] = {
-	{}
-};
-
-const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   cause_for_rejuvenation_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   cause_for_rejuvenation),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   requesting_sub_system_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   requesting_sub_system),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   line_number_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_2_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u16),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x12,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   line_number),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   function_name_valid),
-	},
-	{
-		.data_type      = QMI_STRING,
-		.elem_len       = QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1,
-		.elem_size      = sizeof(char),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x13,
-		.offset         = offsetof(struct wlfw_rejuvenate_ind_msg_v01,
-					   function_name),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[] = {
-	{}
-};
-
-const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_rejuvenate_ack_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_req_msg_v01,
-					   mask_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_req_msg_v01,
-					   mask),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   prev_mask_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x10,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   prev_mask),
-	},
-	{
-		.data_type      = QMI_OPT_FLAG,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   curr_mask_valid),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x11,
-		.offset         = offsetof(struct wlfw_dynamic_feature_mask_resp_msg_v01,
-					   curr_mask),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_8_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u64),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_m3_info_req_msg_v01,
-					   addr),
-	},
-	{
-		.data_type      = QMI_UNSIGNED_4_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u32),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_m3_info_req_msg_v01,
-					   size),
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_STRUCT,
-		.elem_len       = 1,
-		.elem_size      = sizeof(struct qmi_response_type_v01),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x02,
-		.offset         = offsetof(struct wlfw_m3_info_resp_msg_v01,
-					   resp),
-		.ei_array      = qmi_response_type_v01_ei,
-	},
-	{}
-};
-
-const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[] = {
-	{
-		.data_type      = QMI_UNSIGNED_1_BYTE,
-		.elem_len       = 1,
-		.elem_size      = sizeof(u8),
-		.array_type     = NO_ARRAY,
-		.tlv_type       = 0x01,
-		.offset         = offsetof(struct wlfw_xo_cal_ind_msg_v01,
-					   xo_cal_data),
-	},
-	{}
-};
diff --git a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
index 8d4b929e8437..a1bffd89d3bd 100644
--- a/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
+++ b/drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h
@@ -61,19 +61,14 @@
 #define QMI_WLFW_IND_REGISTER_RESP_V01 0x0020
 
 #define QMI_WLFW_MAX_MEM_REG_V01 2
-#define QMI_WLFW_MAX_NUM_MEM_SEG_V01 16
 #define QMI_WLFW_MAX_NUM_CAL_V01 5
 #define QMI_WLFW_MAX_DATA_SIZE_V01 6144
-#define QMI_WLFW_FUNCTION_NAME_LEN_V01 128
 #define QMI_WLFW_MAX_NUM_CE_V01 12
 #define QMI_WLFW_MAX_TIMESTAMP_LEN_V01 32
-#define QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01 6144
 #define QMI_WLFW_MAX_NUM_GPIO_V01 32
 #define QMI_WLFW_MAX_BUILD_ID_LEN_V01 128
-#define QMI_WLFW_MAX_NUM_MEM_CFG_V01 2
 #define QMI_WLFW_MAX_STR_LEN_V01 16
 #define QMI_WLFW_MAX_NUM_SHADOW_REG_V01 24
-#define QMI_WLFW_MAC_ADDR_SIZE_V01 6
 #define QMI_WLFW_MAX_SHADOW_REG_V2 36
 #define QMI_WLFW_MAX_NUM_SVC_V01 24
 
@@ -103,11 +98,6 @@ enum wlfw_pipedir_enum_v01 {
 	QMI_WLFW_PIPEDIR_INOUT_V01 = 3,
 };
 
-enum wlfw_mem_type_enum_v01 {
-	QMI_WLFW_MEM_TYPE_MSA_V01 = 0,
-	QMI_WLFW_MEM_TYPE_DDR_V01 = 1,
-};
-
 #define QMI_WLFW_CE_ATTR_FLAGS_V01 ((u32)0x00)
 #define QMI_WLFW_CE_ATTR_NO_SNOOP_V01 ((u32)0x01)
 #define QMI_WLFW_CE_ATTR_BYTE_SWAP_DATA_V01 ((u32)0x02)
@@ -152,25 +142,6 @@ struct wlfw_memory_region_info_s_v01 {
 	u8 secure_flag;
 };
 
-struct wlfw_mem_cfg_s_v01 {
-	u64 offset;
-	u32 size;
-	u8 secure_flag;
-};
-
-struct wlfw_mem_seg_s_v01 {
-	u32 size;
-	enum wlfw_mem_type_enum_v01 type;
-	u32 mem_cfg_len;
-	struct wlfw_mem_cfg_s_v01 mem_cfg[QMI_WLFW_MAX_NUM_MEM_CFG_V01];
-};
-
-struct wlfw_mem_seg_resp_s_v01 {
-	u64 addr;
-	u32 size;
-	enum wlfw_mem_type_enum_v01 type;
-};
-
 struct wlfw_rf_chip_info_s_v01 {
 	u32 chip_id;
 	u32 chip_family;
@@ -240,18 +211,6 @@ struct wlfw_msa_ready_ind_msg_v01 {
 #define WLFW_MSA_READY_IND_MSG_V01_MAX_MSG_LEN 0
 extern const struct qmi_elem_info wlfw_msa_ready_ind_msg_v01_ei[];
 
-struct wlfw_pin_connect_result_ind_msg_v01 {
-	u8 pwr_pin_result_valid;
-	u32 pwr_pin_result;
-	u8 phy_io_pin_result_valid;
-	u32 phy_io_pin_result;
-	u8 rf_pin_result_valid;
-	u32 rf_pin_result;
-};
-
-#define WLFW_PIN_CONNECT_RESULT_IND_MSG_V01_MAX_MSG_LEN 21
-extern const struct qmi_elem_info wlfw_pin_connect_result_ind_msg_v01_ei[];
-
 struct wlfw_wlan_mode_req_msg_v01 {
 	enum wlfw_driver_mode_enum_v01 mode;
 	u8 hw_debug_valid;
@@ -365,72 +324,6 @@ struct wlfw_cal_report_resp_msg_v01 {
 #define WLFW_CAL_REPORT_RESP_MSG_V01_MAX_MSG_LEN 7
 extern const struct qmi_elem_info wlfw_cal_report_resp_msg_v01_ei[];
 
-struct wlfw_initiate_cal_download_ind_msg_v01 {
-	enum wlfw_cal_temp_id_enum_v01 cal_id;
-};
-
-#define WLFW_INITIATE_CAL_DOWNLOAD_IND_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_initiate_cal_download_ind_msg_v01_ei[];
-
-struct wlfw_cal_download_req_msg_v01 {
-	u8 valid;
-	u8 file_id_valid;
-	enum wlfw_cal_temp_id_enum_v01 file_id;
-	u8 total_size_valid;
-	u32 total_size;
-	u8 seg_id_valid;
-	u32 seg_id;
-	u8 data_valid;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_DATA_SIZE_V01];
-	u8 end_valid;
-	u8 end;
-};
-
-#define WLFW_CAL_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN 6178
-extern const struct qmi_elem_info wlfw_cal_download_req_msg_v01_ei[];
-
-struct wlfw_cal_download_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_CAL_DOWNLOAD_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_cal_download_resp_msg_v01_ei[];
-
-struct wlfw_initiate_cal_update_ind_msg_v01 {
-	enum wlfw_cal_temp_id_enum_v01 cal_id;
-	u32 total_size;
-};
-
-#define WLFW_INITIATE_CAL_UPDATE_IND_MSG_V01_MAX_MSG_LEN 14
-extern const struct qmi_elem_info wlfw_initiate_cal_update_ind_msg_v01_ei[];
-
-struct wlfw_cal_update_req_msg_v01 {
-	enum wlfw_cal_temp_id_enum_v01 cal_id;
-	u32 seg_id;
-};
-
-#define WLFW_CAL_UPDATE_REQ_MSG_V01_MAX_MSG_LEN 14
-extern const struct qmi_elem_info wlfw_cal_update_req_msg_v01_ei[];
-
-struct wlfw_cal_update_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-	u8 file_id_valid;
-	enum wlfw_cal_temp_id_enum_v01 file_id;
-	u8 total_size_valid;
-	u32 total_size;
-	u8 seg_id_valid;
-	u32 seg_id;
-	u8 data_valid;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_DATA_SIZE_V01];
-	u8 end_valid;
-	u8 end;
-};
-
-#define WLFW_CAL_UPDATE_RESP_MSG_V01_MAX_MSG_LEN 6181
-extern const struct qmi_elem_info wlfw_cal_update_resp_msg_v01_ei[];
-
 struct wlfw_msa_info_req_msg_v01 {
 	u64 msa_addr;
 	u32 size;
@@ -477,71 +370,6 @@ struct wlfw_ini_resp_msg_v01 {
 #define WLFW_INI_RESP_MSG_V01_MAX_MSG_LEN 7
 extern const struct qmi_elem_info wlfw_ini_resp_msg_v01_ei[];
 
-struct wlfw_athdiag_read_req_msg_v01 {
-	u32 offset;
-	u32 mem_type;
-	u32 data_len;
-};
-
-#define WLFW_ATHDIAG_READ_REQ_MSG_V01_MAX_MSG_LEN 21
-extern const struct qmi_elem_info wlfw_athdiag_read_req_msg_v01_ei[];
-
-struct wlfw_athdiag_read_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-	u8 data_valid;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01];
-};
-
-#define WLFW_ATHDIAG_READ_RESP_MSG_V01_MAX_MSG_LEN 6156
-extern const struct qmi_elem_info wlfw_athdiag_read_resp_msg_v01_ei[];
-
-struct wlfw_athdiag_write_req_msg_v01 {
-	u32 offset;
-	u32 mem_type;
-	u32 data_len;
-	u8 data[QMI_WLFW_MAX_ATHDIAG_DATA_SIZE_V01];
-};
-
-#define WLFW_ATHDIAG_WRITE_REQ_MSG_V01_MAX_MSG_LEN 6163
-extern const struct qmi_elem_info wlfw_athdiag_write_req_msg_v01_ei[];
-
-struct wlfw_athdiag_write_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_ATHDIAG_WRITE_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_athdiag_write_resp_msg_v01_ei[];
-
-struct wlfw_vbatt_req_msg_v01 {
-	u64 voltage_uv;
-};
-
-#define WLFW_VBATT_REQ_MSG_V01_MAX_MSG_LEN 11
-extern const struct qmi_elem_info wlfw_vbatt_req_msg_v01_ei[];
-
-struct wlfw_vbatt_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_VBATT_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_vbatt_resp_msg_v01_ei[];
-
-struct wlfw_mac_addr_req_msg_v01 {
-	u8 mac_addr_valid;
-	u8 mac_addr[QMI_WLFW_MAC_ADDR_SIZE_V01];
-};
-
-#define WLFW_MAC_ADDR_REQ_MSG_V01_MAX_MSG_LEN 9
-extern const struct qmi_elem_info wlfw_mac_addr_req_msg_v01_ei[];
-
-struct wlfw_mac_addr_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_MAC_ADDR_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_mac_addr_resp_msg_v01_ei[];
-
 #define QMI_WLFW_MAX_NUM_GPIO_V01 32
 struct wlfw_host_cap_req_msg_v01 {
 	u8 daemon_support_valid;
@@ -584,110 +412,4 @@ struct wlfw_host_cap_resp_msg_v01 {
 #define WLFW_HOST_CAP_RESP_MSG_V01_MAX_MSG_LEN 7
 extern const struct qmi_elem_info wlfw_host_cap_resp_msg_v01_ei[];
 
-struct wlfw_request_mem_ind_msg_v01 {
-	u32 mem_seg_len;
-	struct wlfw_mem_seg_s_v01 mem_seg[QMI_WLFW_MAX_NUM_MEM_SEG_V01];
-};
-
-#define WLFW_REQUEST_MEM_IND_MSG_V01_MAX_MSG_LEN 564
-extern const struct qmi_elem_info wlfw_request_mem_ind_msg_v01_ei[];
-
-struct wlfw_respond_mem_req_msg_v01 {
-	u32 mem_seg_len;
-	struct wlfw_mem_seg_resp_s_v01 mem_seg[QMI_WLFW_MAX_NUM_MEM_SEG_V01];
-};
-
-#define WLFW_RESPOND_MEM_REQ_MSG_V01_MAX_MSG_LEN 260
-extern const struct qmi_elem_info wlfw_respond_mem_req_msg_v01_ei[];
-
-struct wlfw_respond_mem_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_RESPOND_MEM_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_respond_mem_resp_msg_v01_ei[];
-
-struct wlfw_mem_ready_ind_msg_v01 {
-	char placeholder;
-};
-
-#define WLFW_MEM_READY_IND_MSG_V01_MAX_MSG_LEN 0
-extern const struct qmi_elem_info wlfw_mem_ready_ind_msg_v01_ei[];
-
-struct wlfw_fw_init_done_ind_msg_v01 {
-	char placeholder;
-};
-
-#define WLFW_FW_INIT_DONE_IND_MSG_V01_MAX_MSG_LEN 0
-extern const struct qmi_elem_info wlfw_fw_init_done_ind_msg_v01_ei[];
-
-struct wlfw_rejuvenate_ind_msg_v01 {
-	u8 cause_for_rejuvenation_valid;
-	u8 cause_for_rejuvenation;
-	u8 requesting_sub_system_valid;
-	u8 requesting_sub_system;
-	u8 line_number_valid;
-	u16 line_number;
-	u8 function_name_valid;
-	char function_name[QMI_WLFW_FUNCTION_NAME_LEN_V01 + 1];
-};
-
-#define WLFW_REJUVENATE_IND_MSG_V01_MAX_MSG_LEN 144
-extern const struct qmi_elem_info wlfw_rejuvenate_ind_msg_v01_ei[];
-
-struct wlfw_rejuvenate_ack_req_msg_v01 {
-	char placeholder;
-};
-
-#define WLFW_REJUVENATE_ACK_REQ_MSG_V01_MAX_MSG_LEN 0
-extern const struct qmi_elem_info wlfw_rejuvenate_ack_req_msg_v01_ei[];
-
-struct wlfw_rejuvenate_ack_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_REJUVENATE_ACK_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_rejuvenate_ack_resp_msg_v01_ei[];
-
-struct wlfw_dynamic_feature_mask_req_msg_v01 {
-	u8 mask_valid;
-	u64 mask;
-};
-
-#define WLFW_DYNAMIC_FEATURE_MASK_REQ_MSG_V01_MAX_MSG_LEN 11
-extern const struct qmi_elem_info wlfw_dynamic_feature_mask_req_msg_v01_ei[];
-
-struct wlfw_dynamic_feature_mask_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-	u8 prev_mask_valid;
-	u64 prev_mask;
-	u8 curr_mask_valid;
-	u64 curr_mask;
-};
-
-#define WLFW_DYNAMIC_FEATURE_MASK_RESP_MSG_V01_MAX_MSG_LEN 29
-extern const struct qmi_elem_info wlfw_dynamic_feature_mask_resp_msg_v01_ei[];
-
-struct wlfw_m3_info_req_msg_v01 {
-	u64 addr;
-	u32 size;
-};
-
-#define WLFW_M3_INFO_REQ_MSG_V01_MAX_MSG_LEN 18
-extern const struct qmi_elem_info wlfw_m3_info_req_msg_v01_ei[];
-
-struct wlfw_m3_info_resp_msg_v01 {
-	struct qmi_response_type_v01 resp;
-};
-
-#define WLFW_M3_INFO_RESP_MSG_V01_MAX_MSG_LEN 7
-extern const struct qmi_elem_info wlfw_m3_info_resp_msg_v01_ei[];
-
-struct wlfw_xo_cal_ind_msg_v01 {
-	u8 xo_cal_data;
-};
-
-#define WLFW_XO_CAL_IND_MSG_V01_MAX_MSG_LEN 4
-extern const struct qmi_elem_info wlfw_xo_cal_ind_msg_v01_ei[];
-
 #endif
-- 
2.53.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-30  7:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 11:11 [PATCH] wifi: ath10k: Drop unused qmi_elem_info arrays Krzysztof Kozlowski
2026-10-29 19:54 ` Jeff Johnson
2026-10-30  6:43   ` Krzysztof Kozlowski
2026-10-30  6:47 ` kernel test robot
2026-10-30  7:19 Krzysztof Kozlowski
2026-10-30  7:34 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®