Skip to content

Commit 7118239

Browse files
BenjaminLimJLsieumunt
authored andcommitted
fix(intel): remove checking on TEMP and VOLT checking for HWMON
Remove high level logic hardware channel checking on HWMON TEMP and VOLT read. Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
1 parent 5d9a8d7 commit 7118239

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

plat/intel/soc/common/socfpga_sip_svc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -469,10 +469,6 @@ static uint32_t intel_rsu_copy_dcmf_status(uint64_t dcmf_stat)
469469
/* Intel HWMON services */
470470
static uint32_t intel_hwmon_readtemp(uint32_t chan, uint32_t *retval)
471471
{
472-
if (chan > TEMP_CHANNEL_MAX) {
473-
return INTEL_SIP_SMC_STATUS_ERROR;
474-
}
475-
476472
if (mailbox_hwmon_readtemp(chan, retval) < 0) {
477473
return INTEL_SIP_SMC_STATUS_ERROR;
478474
}
@@ -482,10 +478,6 @@ static uint32_t intel_hwmon_readtemp(uint32_t chan, uint32_t *retval)
482478

483479
static uint32_t intel_hwmon_readvolt(uint32_t chan, uint32_t *retval)
484480
{
485-
if (chan > VOLT_CHANNEL_MAX) {
486-
return INTEL_SIP_SMC_STATUS_ERROR;
487-
}
488-
489481
if (mailbox_hwmon_readvolt(chan, retval) < 0) {
490482
return INTEL_SIP_SMC_STATUS_ERROR;
491483
}

0 commit comments

Comments
 (0)