Browse Source

fix(intel): get config status OK status

Config status have different OK requirement between MBOX_CONFIG_STATUS
and MBOX_RECONFIG_STATUS request. This patch adds the checking to
differentiate between both command.

Signed-off-by: Abdul Halim, Muhammad Hadi Asyrafi <muhammad.hadi.asyrafi.abdul.halim@intel.com>
Change-Id: I45a4c3de460b031757dbcbd0b3a8055cb0a55aff
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
pull/1985/head
Abdul Halim, Muhammad Hadi Asyrafi 4 years ago
committed by Sieu Mun Tang
parent
commit
07915a4fd5
  1. 6
      plat/intel/soc/common/soc/socfpga_mailbox.c

6
plat/intel/soc/common/soc/socfpga_mailbox.c

@ -507,11 +507,13 @@ int intel_mailbox_get_config_status(uint32_t cmd, bool init_done)
return MBOX_CFGSTAT_STATE_ERROR_HARDWARE;
}
if ((res & SOFTFUNC_STATUS_CONF_DONE) == 0U)
if ((res & SOFTFUNC_STATUS_CONF_DONE) == 0U) {
return MBOX_CFGSTAT_STATE_CONFIG;
}
if (init_done && (res & SOFTFUNC_STATUS_INIT_DONE) == 0U)
if (init_done && (res & SOFTFUNC_STATUS_INIT_DONE) == 0U) {
return MBOX_CFGSTAT_STATE_CONFIG;
}
return MBOX_RET_OK;
}

Loading…
Cancel
Save