]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:55:53 +0000 (14:55 +0200)
commit2ada9dc120882dae9825e25b2134a4e8dcb7a97a
tree7bd9169f9da15d932c839e57c765fc0f27f3f69c
parent2deae24b30c14372dc0069b470e5188e0f74d335
i2c: sprd: Fix the i2c count issue

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 2a010461207cc96bee5ab81748325dec1972976f ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/i2c/busses/i2c-sprd.c