diff options
author | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-08-01 01:34:16 -0500 |
---|---|---|
committer | AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> | 2016-08-18 06:33:18 -0400 |
commit | 7d4a70e5f5dcebe147370396025d6fe774f0dbf4 (patch) | |
tree | ed34748e71b0e4f4cb04842309be8aacf0933ff2 /sbe | |
parent | 509e19ecb1ea7976a0879825924616501a79a89b (diff) | |
download | talos-sbe-7d4a70e5f5dcebe147370396025d6fe774f0dbf4.tar.gz talos-sbe-7d4a70e5f5dcebe147370396025d6fe774f0dbf4.zip |
Reset fapi2::current_err
Change-Id: I16d926b7213089494393014e8fd611e0750d7c9e
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27677
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe')
-rw-r--r-- | sbe/sbefw/sbecmdprocessor.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sbe/sbefw/sbecmdprocessor.C b/sbe/sbefw/sbecmdprocessor.C index 0f3f90b4..969367c0 100644 --- a/sbe/sbefw/sbecmdprocessor.C +++ b/sbe/sbefw/sbecmdprocessor.C @@ -44,6 +44,7 @@ #include "sbecmdiplcontrol.H" #include "sberegaccess.H" #include "sbestates.H" +#include "fapi2.H" ///////////////////////////////////////////////////////////////////// @@ -272,6 +273,12 @@ void sbeSyncCommandProcessor_routine(void *i_pArg) uint8_t l_cmdClass = 0; uint8_t l_cmdOpCode = 0; + // Reset the value of fapi2::current_err from previous value. + // This is required as none of procedure set this value in success + // case. So if we do not reset previous value, previous failure + // will impact new chipops also. + fapi2::current_err = fapi2::FAPI2_RC_SUCCESS; + // Check on the Rx Thread Interrupt Bits for Interrupt Status if ( g_sbeIntrSource.isSet(SBE_RX_ROUTINE, SBE_INTERFACE_PSU) ) |