diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2017-04-24 12:23:06 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-04-24 18:04:03 -0400 |
commit | 5799315afe7246ffb3609819cb27224e6e91c378 (patch) | |
tree | 584ad00e82cb7a46843e7e34980b39d91a783cff /src/usr | |
parent | 2f9493fc18863e18a1478795b5e9e577a306516b (diff) | |
download | talos-hostboot-5799315afe7246ffb3609819cb27224e6e91c378.tar.gz talos-hostboot-5799315afe7246ffb3609819cb27224e6e91c378.zip |
sbe_psudd.C: don't error out if sbe command is not supported
Change-Id: I35062b18794622d7adc0114340593bf2ad7aae70
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39605
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/sbeio/sbe_psudd.C | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/usr/sbeio/sbe_psudd.C b/src/usr/sbeio/sbe_psudd.C index e6cd88a9d..16695cc0a 100644 --- a/src/usr/sbeio/sbe_psudd.C +++ b/src/usr/sbeio/sbe_psudd.C @@ -345,8 +345,24 @@ errlHndl_t SbePsu::readResponse(TARGETING::Target * i_target, errl = writeScom(i_target,PSU_HOST_DOORBELL_REG_AND,&l_data); if (errl) break; + //If the command is not supported, then print a statement and break out + if(o_pPsuResponse->primaryStatus == SBE_PRI_INVALID_COMMAND && + o_pPsuResponse->secondaryStatus == SBE_SEC_COMMAND_NOT_SUPPORTED) + { + SBE_TRACF("sbe_psudd.C :: readResponse: COMMAND NOT SUPPORTED " + " cmd=0x%02x%02x prim=0x%08x secondary=0x%08x" + " expected seqID=%d actual seqID=%d", + i_pPsuRequest->commandClass, + i_pPsuRequest->command, + o_pPsuResponse->primaryStatus, + o_pPsuResponse->secondaryStatus, + i_pPsuRequest->seqID, + o_pPsuResponse->seqID); + SBE_TRACFBIN( "Full response:", o_pPsuResponse, sizeof(psuResponse) ); + break; + } //check status and seq ID in response messages - if ((SBE_PRI_OPERATION_SUCCESSFUL != o_pPsuResponse->primaryStatus) || + else if ((SBE_PRI_OPERATION_SUCCESSFUL != o_pPsuResponse->primaryStatus) || (SBE_SEC_OPERATION_SUCCESSFUL != o_pPsuResponse->secondaryStatus) || (i_pPsuRequest->seqID != o_pPsuResponse->seqID) ) { |