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)
commit2a010461207cc96bee5ab81748325dec1972976f
tree38897ae6564a043fbbb255018ef303032b62e96d
parentda33aa03fa34c918faf2c371ebda0dd961d7ccb2
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