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:
parent
53b70dc012
commit
fad437973c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue