summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/i2c')
-rwxr-xr-xsrc/usr/i2c/i2c.C12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C
index 7e134a5bc..d8cde876e 100755
--- a/src/usr/i2c/i2c.C
+++ b/src/usr/i2c/i2c.C
@@ -6,6 +6,7 @@
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -2723,12 +2724,13 @@ errlHndl_t i2cReset ( TARGETING::Target * i_target,
// So just commit the log here and let the function continue.
errlCommit( err, I2C_COMP_ID );
}
- }
+ } else {
- // Part of doing the I2C Master reset is also sending a stop
- // command to the slave device.
- err = i2cSendSlaveStop( i_target,
- i_args );
+ // Part of doing the I2C Master reset is also sending a stop
+ // command to the slave device.
+ err = i2cSendSlaveStop( i_target,
+ i_args );
+ }
if( err )
{
OpenPOWER on IntegriCloud