driver: i2c: mec15xx: recover from error for LAB

For lost arbitration error condition add recover from
error logic to reset the i2c controller

Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
This commit is contained in:
Jay Vasanth 2022-05-18 10:26:52 -04:00 committed by Carles Cufí
commit fad437973c

View file

@ -261,6 +261,7 @@ static int wait_completion(const struct device *dev)
/* Is Lost arbitration ? */
status = MCHP_I2C_SMB_STS_RO(ba);
if (status & MCHP_I2C_SMB_STS_LAB) {
recover_from_error(dev);
return -EPERM;
}