Pārlūkot izejas kodu

qcacmn: Print FW CRM sub ID version during driver init

During driver load, print FW CRM sub ID value received in service
ready ext event.

Change-Id: I710508c9c12a476690e0379938c30c916293620f
CRs-Fixed: 3067102
Bapiraju Alla 3 gadi atpakaļ
vecāks
revīzija
b3afe1b27a
1 mainītis faili ar 10 papildinājumiem un 4 dzēšanām
  1. 10 4
      target_if/init_deinit/src/init_cmd_api.c

+ 10 - 4
target_if/init_deinit/src/init_cmd_api.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -420,6 +421,7 @@ void init_deinit_prepare_send_init_cmd(
 	struct tgt_info *info;
 	struct wmi_unified *wmi_handle;
 	QDF_STATUS ret_val;
+	uint32_t fw_build_vers_ext;
 
 	if (!tgt_hdl) {
 		target_if_err("target_psoc_info is null");
@@ -471,11 +473,15 @@ void init_deinit_prepare_send_init_cmd(
 		target_psoc_get_target_cap_flags(tgt_hdl);
 
 	target_if_debug("FW version 0x%x ", info->target_caps.fw_version);
-	if (init_deinit_is_service_ext_msg(psoc, tgt_hdl) == QDF_STATUS_SUCCESS)
-		target_if_debug("0x%x\n",
-				info->service_ext_param.fw_build_vers_ext);
-	else
+	if (init_deinit_is_service_ext_msg(psoc, tgt_hdl) ==
+							QDF_STATUS_SUCCESS) {
+		fw_build_vers_ext = info->service_ext_param.fw_build_vers_ext;
+		target_if_debug("fw_build_vers_ext:0x%x HDL version info:0x%0x, CRM sub ID:0x%x\n",
+				fw_build_vers_ext, fw_build_vers_ext & 0x3FF,
+				(fw_build_vers_ext >> 25) & 0x7F);
+	} else {
 		target_if_debug("0x%x\n", info->target_caps.fw_version_1);
+	}
 
 	target_if_ext_res_cfg_enable(psoc, tgt_hdl, NULL);