summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@cavium.com>2018-05-16 09:00:17 +0200
committerWolfram Sang <wsa@the-dreams.de>2018-05-22 14:06:25 +0200
commit8d504d804ab657779254bdd37079d2442d75cbe8 (patch)
tree5cd936b894bc94749cb54f48d2dee3fbd64866b8 /samples
parenti2c: xlp9xx: Add support for SMBAlert (diff)
downloadlinux-8d504d804ab657779254bdd37079d2442d75cbe8.tar.xz
linux-8d504d804ab657779254bdd37079d2442d75cbe8.zip
i2c: xlp9xx: Fix issue seen when updating receive length
The hardware does not handle updates to the length register gracefully if the new value is less than the number of bytes received so far. If this happens, the i2c controller will not stop the receive transaction properly. Fix this by ensuring that the updated length is ok. This is done by making sure that the new length written to hardware is at least few bytes more than the bytes received so far. While at that refactor the length updation to a new function. Signed-off-by: Jayachandran C <jnair@caviumnetworks.com> Signed-off-by: George Cherian <george.cherian@cavium.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions