i2c: exynos: Clear pending interrupt for all operation modes
Hybrid mode could be switching between polling and interrupt mode. In which case, we should always clear the pending IRQs to avoid spurious interrupts. Bug: 288490582 Test: Device boots, GCA, CTS Signed-off-by: Edmond Chung <edmondchung@google.com> Change-Id: Id33160b4c724cf800430c0833ce6703a5c2946ef
This commit is contained in:
parent
425dc84103
commit
1fd74bc9af
1 changed files with 1 additions and 2 deletions
|
@ -838,8 +838,7 @@ static int exynos5_i2c_xfer_msg(struct exynos5_i2c *i2c,
|
|||
i2c_int_en |= HSI2C_INT_TX_ALMOSTEMPTY_EN;
|
||||
}
|
||||
|
||||
if (operation_mode == HSI2C_INTERRUPT)
|
||||
exynos5_i2c_clr_pend_irq(i2c);
|
||||
exynos5_i2c_clr_pend_irq(i2c);
|
||||
|
||||
if ((stop == 1) || (i2c->stop_after_trans == 1))
|
||||
i2c_auto_conf |= HSI2C_STOP_AFTER_TRANS;
|
||||
|
|
Loading…
Add table
Reference in a new issue