diff options
author | Mike Baiocchi <baiocchi@us.ibm.com> | 2015-03-23 16:50:33 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-03-25 09:23:42 -0500 |
commit | b3f6894ba21c46081e512fdae6b7530116701109 (patch) | |
tree | 9fd249692712747bf6e66ad84374757915cf68ff /src/usr/i2c | |
parent | 295a68522feb67dea1ed98c55466c0e81d8026e7 (diff) | |
download | talos-hostboot-b3f6894ba21c46081e512fdae6b7530116701109.tar.gz talos-hostboot-b3f6894ba21c46081e512fdae6b7530116701109.zip |
Limit I2C Reset on Processors to engine 0
When I2C Reset is called for procesors, the reset is only done on
I2C Master Engine 0 with this change.
Change-Id: I6df6181d5dc7b24a3cd270930a50e52023eb1d73
CQ: SW300339
Backport: release-fips830
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16547
Tested-by: Jenkins Server
Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-x | src/usr/i2c/i2c.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C index bc4bb7bfd..6748dca81 100755 --- a/src/usr/i2c/i2c.C +++ b/src/usr/i2c/i2c.C @@ -2538,6 +2538,15 @@ errlHndl_t i2cProcessActiveMasters ( i2cProcessType i_processType, continue; } + // @todo RTC 126069 - only resetting engine 0 for now + // -- only processors have an engine 1 + // (separate block from above to avoid merge issues) + if ( ( i_processType & I2C_OP_RESET ) && + ( engine != 0 ) ) + { + continue; + } + // Look for any device on this engine based on speed_array bool skip = true; for ( size_t j = 0; j < I2C_BUS_ATTR_MAX_PORT; j++ ) |