]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sprd: Fix the i2c count issue
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 9 Apr 2018 06:40:55 +0000 (14:40 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 27 Apr 2018 12:12:43 +0000 (14:12 +0200)
commit479cd0b32463d88df24ab71f49b80c7d5e392fc5
tree38897ae6564a043fbbb255018ef303032b62e96d
parent38d0344da2ecb84c86df71b21aabe5b66c8f5281
i2c: sprd: Fix the i2c count issue

We found the I2C controller count register is unreliable sometimes,
that will cause I2C to lose data. Thus we can read the data count
from 'i2c_dev->count' instead of the I2C controller count register.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sprd.c