소스 검색

qcacmn: Report thermal target shutdown level

Support new firmware thermal level WMI_THERMAL_SHUTDOWN_TGT
to indicate target over heat and need to be shutdown completely.

Change-Id: Icdb8aab9fe7b8914681cc46a4ccb5579781c587d
CRs-Fixed: 2835410
Liangwei Dong 4 년 전
부모
커밋
6e67047de5
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      umac/thermal/dispatcher/inc/wlan_thermal_public_struct.h
  2. 2 0
      wmi/src/wmi_unified_tlv.c

+ 3 - 1
umac/thermal/dispatcher/inc/wlan_thermal_public_struct.h

@@ -23,13 +23,15 @@
  * enum thermal_throttle_level - firmware offload throttle level
  * @THERMAL_FULLPERF: no any throtting
  * @THERMAL_MITIGATION: throtting tx to do mitigation
- * @THERMAL_SHUTOFF: shut down the tx completely
+ * @THERMAL_SHUTOFF: shut off the tx completely
+ * @THERMAL_SHUTDOWN_TARGET: target will be shutdown entirely
  * @THERMAL_UNKNOWN: unknown level from target.
  */
 enum thermal_throttle_level {
 	 THERMAL_FULLPERF,
 	 THERMAL_MITIGATION,
 	 THERMAL_SHUTOFF,
+	 THERMAL_SHUTDOWN_TARGET,
 	 THERMAL_UNKNOWN,
 };
 

+ 2 - 0
wmi/src/wmi_unified_tlv.c

@@ -11429,6 +11429,8 @@ wmi_tgt_thermal_level_to_host(uint32_t level)
 		return THERMAL_MITIGATION;
 	case WMI_THERMAL_SHUTOFF:
 		return THERMAL_SHUTOFF;
+	case WMI_THERMAL_SHUTDOWN_TGT:
+		return THERMAL_SHUTDOWN_TARGET;
 	default:
 		return THERMAL_UNKNOWN;
 	}