]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(intel): remove checking on TEMP and VOLT checking for HWMON
authorJit Loon Lim <jit.loon.lim@intel.com>
Thu, 6 Oct 2022 02:52:40 +0000 (10:52 +0800)
committerSieu Mun Tang <sieu.mun.tang@intel.com>
Tue, 22 Nov 2022 15:56:06 +0000 (23:56 +0800)
Remove high level logic hardware channel checking on HWMON
TEMP and VOLT read.

Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
Change-Id: I9102b7b4334cb95f0b622c498a6569328f534d42

plat/intel/soc/common/socfpga_sip_svc.c

index f079349f3744b671844c8d03bd7f641fa76ddadf..b57ab924107e9f7f3547c3cad8d9d74c20aa6c7b 100644 (file)
@@ -469,10 +469,6 @@ static uint32_t intel_rsu_copy_dcmf_status(uint64_t dcmf_stat)
 /* Intel HWMON services */
 static uint32_t intel_hwmon_readtemp(uint32_t chan, uint32_t *retval)
 {
-       if (chan > TEMP_CHANNEL_MAX) {
-               return INTEL_SIP_SMC_STATUS_ERROR;
-       }
-
        if (mailbox_hwmon_readtemp(chan, retval) < 0) {
                return INTEL_SIP_SMC_STATUS_ERROR;
        }
@@ -482,10 +478,6 @@ static uint32_t intel_hwmon_readtemp(uint32_t chan, uint32_t *retval)
 
 static uint32_t intel_hwmon_readvolt(uint32_t chan, uint32_t *retval)
 {
-       if (chan > VOLT_CHANNEL_MAX) {
-               return INTEL_SIP_SMC_STATUS_ERROR;
-       }
-
        if (mailbox_hwmon_readvolt(chan, retval) < 0) {
                return INTEL_SIP_SMC_STATUS_ERROR;
        }