i2c: exynos5: add conditional reset of hsi2c master before transfer
authorYoungmin Nam <youngmin.nam@samsung.com>
Tue, 5 Jan 2016 06:18:28 +0000 (15:18 +0900)
committermyung-su.cha <myung-su.cha@samsung.com>
Wed, 9 May 2018 12:14:45 +0000 (21:14 +0900)
commit2a5e8467ef6745eb25796d4bb826406de161edd0
tree162abeb6c97c601d19eb887e18c427a0a0af113f
parent22755f813e89fa7a59089513a4ec3a84e45da7e7
i2c: exynos5: add conditional reset of hsi2c master before transfer

This patch resets hsi2c master before transfer if related property was set.
HSI2C master can goes into master arbitration lost state if there is the
fluctuation on SCL/SDA line before starting transfer.
To getting out of this state, mater should be reset.

Change-Id: I2487152abff708f61182bbca866f51a421a0c4c9
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
drivers/i2c/busses/i2c-exynos5.c
drivers/i2c/busses/i2c-exynos5.h