diff options
author | Jit Loon Lim <jit.loon.lim@intel.com> | 2022-10-06 10:52:40 +0800 |
---|---|---|
committer | Sieu Mun Tang <sieu.mun.tang@intel.com> | 2022-11-22 23:56:06 +0800 |
commit | 68ac5fe14c0220673d7ee88a99b3d02be1fef530 (patch) | |
tree | a870de43b3e085b498ef9d10895515d016d0c275 /plat/intel | |
parent | 9881bb93a3bc0a3ea37e9f093e09ab4b360a9e48 (diff) | |
download | arm-trusted-firmware-68ac5fe14c0220673d7ee88a99b3d02be1fef530.tar.gz |
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>
Change-Id: I9102b7b4334cb95f0b622c498a6569328f534d42
Diffstat (limited to 'plat/intel')
-rw-r--r-- | plat/intel/soc/common/socfpga_sip_svc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plat/intel/soc/common/socfpga_sip_svc.c b/plat/intel/soc/common/socfpga_sip_svc.c index f079349f3..b57ab9241 100644 --- a/plat/intel/soc/common/socfpga_sip_svc.c +++ b/plat/intel/soc/common/socfpga_sip_svc.c @@ -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; } |