diff options
Diffstat (limited to 'cnss2/qmi.c')
-rw-r--r-- | cnss2/qmi.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/cnss2/qmi.c b/cnss2/qmi.c index 3ffcc66..d599565 100644 --- a/cnss2/qmi.c +++ b/cnss2/qmi.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. - * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include <linux/module.h> @@ -189,7 +189,7 @@ qmi_registered: static void cnss_wlfw_host_cap_parse_mlo(struct cnss_plat_data *plat_priv, struct wlfw_host_cap_req_msg_v01 *req) { - if (plat_priv->device_id == WCN7850_DEVICE_ID) { + if (plat_priv->device_id == KIWI_DEVICE_ID) { req->mlo_capable_valid = 1; req->mlo_capable = 1; req->mlo_chip_id_valid = 1; @@ -520,6 +520,18 @@ int cnss_wlfw_tgt_cap_send_sync(struct cnss_plat_data *plat_priv) plat_priv->fw_pcie_gen_switch = !!(resp->fw_caps & QMI_WLFW_HOST_PCIE_GEN_SWITCH_V01); + if (resp->hang_data_length_valid && + resp->hang_data_length && + resp->hang_data_length <= WLFW_MAX_HANG_EVENT_DATA_SIZE) + plat_priv->hang_event_data_len = resp->hang_data_length; + else + plat_priv->hang_event_data_len = 0; + + if (resp->hang_data_addr_offset_valid) + plat_priv->hang_data_addr_offset = resp->hang_data_addr_offset; + else + plat_priv->hang_data_addr_offset = 0; + cnss_pr_dbg("Target capability: chip_id: 0x%x, chip_family: 0x%x, board_id: 0x%x, soc_id: 0x%x, otp_version: 0x%x\n", plat_priv->chip_info.chip_id, plat_priv->chip_info.chip_family, @@ -529,6 +541,9 @@ int cnss_wlfw_tgt_cap_send_sync(struct cnss_plat_data *plat_priv) plat_priv->fw_version_info.fw_version, plat_priv->fw_version_info.fw_build_timestamp, plat_priv->fw_build_id); + cnss_pr_dbg("Hang event params, Length: 0x%x, Offset Address: 0x%x\n", + plat_priv->hang_event_data_len, + plat_priv->hang_data_addr_offset); kfree(req); kfree(resp); @@ -1013,7 +1028,7 @@ void cnss_get_qdss_cfg_filename(struct cnss_plat_data *plat_priv, char filename_tmp[MAX_FIRMWARE_NAME_LEN]; char *debug_str = QDSS_DEBUG_FILE_STR; - if (plat_priv->device_id == WCN7850_DEVICE_ID) + if (plat_priv->device_id == KIWI_DEVICE_ID) debug_str = ""; if (plat_priv->device_version.major_version == FW_V2_NUMBER) |