From 6cd63a2e9488c55027353cf8f22b9161fb64f9f3 Mon Sep 17 00:00:00 2001 From: Kyungwoo Kang Date: Thu, 4 May 2017 13:51:41 +0900 Subject: [PATCH] [COMMON] i2c: exynos5: I2C SFR changes Trans status register has been changed by USIv2. Change-Id: Ib5e50d59465eff40ba33fa19b7c42b84675f4668 Signed-off-by: Kyungwoo Kang --- drivers/i2c/busses/i2c-exynos5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index d3bf839226fd..10850f757b64 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -790,7 +790,8 @@ static int exynos5_i2c_xfer(struct i2c_adapter *adap, /* master should be reset */ if (i2c->reset_before_trans) { if (unlikely((readl(i2c->regs + HSI2C_TRANS_STATUS) - & HSI2C_MAST_ST_MASK) == 0xC)) { + & HSI2C_MAST_ST_MASK) == 0x6)) { + pr_info("%s trans status and reset = %s\n", __func__, adap->name); i2c->need_hw_init = 1; } } -- 2.20.1