diff options
| author | Matthew Raybuck <matthew.raybuck@ibm.com> | 2019-03-28 10:41:20 -0500 |
|---|---|---|
| committer | Nicholas E. Bofferding <bofferdn@us.ibm.com> | 2019-03-29 22:24:18 -0500 |
| commit | b445b93fc21ee80515090087e063fd74b8d508a3 (patch) | |
| tree | 8d16ef93fb3327fb07e607727030d414229a5821 /src/include/usr/i2c | |
| parent | a98d9a843a71d635456674bc55062552ecaa2cbc (diff) | |
| download | blackbird-hostboot-b445b93fc21ee80515090087e063fd74b8d508a3.tar.gz blackbird-hostboot-b445b93fc21ee80515090087e063fd74b8d508a3.zip | |
Handle bad PEC from UCD device op
The current UCD code doesn't have any error handling for a bad PEC byte
instead it is just ignored. This will add the necessary error handling
to the retry code for bad PEC bytes.
Change-Id: I8d9960a203b5864812bcaa0019087bb3dcff0c53
RTC:205982
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75174
Reviewed-by: Michael Baiocchi <mbaiocch@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>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
| -rw-r--r-- | src/include/usr/i2c/i2creasoncodes.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/usr/i2c/i2creasoncodes.H b/src/include/usr/i2c/i2creasoncodes.H index 6e29065db..a2b79be32 100644 --- a/src/include/usr/i2c/i2creasoncodes.H +++ b/src/include/usr/i2c/i2creasoncodes.H @@ -66,9 +66,9 @@ enum i2cModuleId READ_I2C_ATTRIBUTES = 0x10, I2C_ACCESS_MUX = 0x11, I2C_GENERIC_PRES_DETECT = 0x12, + I2C_BAD_PEC_BYTE_ERROR = 0x13, }; - /** * @enum i2cReasonCode * @@ -106,6 +106,7 @@ enum i2cReasonCode I2C_INVALID_BLOCK_WRITE_LENGTH = I2C_COMP_ID | 0x1A, // Invalid block write length I2C_INVALID_READ_BYTE_OR_WORD_LENGTH = I2C_COMP_ID | 0x1B, // Invalid read byte/word length I2C_INVALID_BLOCK_READ_LENGTH = I2C_COMP_ID | 0x1C, // Invalid block read length + I2C_BAD_PEC_BYTE = I2C_COMP_ID | 0x1D, // Bad PEC byte }; |

