From e40910e2dc3fa59bcce83ec1cf9a33b3e85012c4 Mon Sep 17 00:00:00 2001 From: "Abdul Halim, Muhammad Hadi Asyrafi" Date: Tue, 29 Dec 2020 16:49:23 +0800 Subject: [PATCH] fix(intel): configuration status based on start request Configuration status command now returns the result based on the last config start command made to the runtime software. The status type can be either: - NO_REQUEST (default) - RECONFIGURATION - BITSTREAM_AUTH Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi Change-Id: I97406abe09b49b9d9a5b43e62fe09eb23c729bff Signed-off-by: Jit Loon Lim --- plat/intel/soc/common/socfpga_sip_svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/intel/soc/common/socfpga_sip_svc.c b/plat/intel/soc/common/socfpga_sip_svc.c index 56a88ab68..f583a5572 100644 --- a/plat/intel/soc/common/socfpga_sip_svc.c +++ b/plat/intel/soc/common/socfpga_sip_svc.c @@ -95,7 +95,7 @@ static uint32_t intel_mailbox_fpga_config_isdone(uint32_t query_type) else ret = intel_mailbox_get_config_status(MBOX_RECONFIG_STATUS, true); - if (ret) { + if (ret != 0U) { if (ret == MBOX_CFGSTAT_STATE_CONFIG) return INTEL_SIP_SMC_STATUS_BUSY; else