]> git.baikalelectronics.ru Git - kernel.git/commitdiff
i2c: exynos5: change internal transmission timeout to 100ms
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 30 Nov 2017 14:30:05 +0000 (15:30 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 15 Jan 2018 20:54:28 +0000 (21:54 +0100)
Exynos-I2C uses default timeout of 1 second for the whole transaction,
including re-transmissions due to arbitration lost errors (-EAGAIN).
To allow re-transmissions driver's internal timeout should be significantly
lower, 100ms seems to be good candidate.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-exynos5.c

index 3855e0b11877144b0ff717df480969f571fba3fd..b02428498f6df3115e780b2c2c3c37e17d37798a 100644 (file)
 #define HSI2C_HS_TX_CLOCK      1000000
 #define HSI2C_FS_TX_CLOCK      100000
 
-#define EXYNOS5_I2C_TIMEOUT (msecs_to_jiffies(1000))
+#define EXYNOS5_I2C_TIMEOUT (msecs_to_jiffies(100))
 
 #define HSI2C_EXYNOS7  BIT(0)