From fad437973c1b35f4e7074718b12b728c242b03e4 Mon Sep 17 00:00:00 2001 From: Jay Vasanth Date: Wed, 18 May 2022 10:26:52 -0400 Subject: [PATCH] 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 --- drivers/i2c/i2c_mchp_xec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/i2c_mchp_xec.c b/drivers/i2c/i2c_mchp_xec.c index 69dba22b461..f3f405df4db 100644 --- a/drivers/i2c/i2c_mchp_xec.c +++ b/drivers/i2c/i2c_mchp_xec.c @@ -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; }