]> 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)
commitd1dc7676f3c46587b6a4ea0e95bffa12732a4567
tree38897ae6564a043fbbb255018ef303032b62e96d
parent4c3814dae14976155b6defddc53164230c9dddeb
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