summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@cavium.com>2018-05-16 00:00:17 -0700
committerWolfram Sang <wsa@the-dreams.de>2018-05-22 14:06:25 +0200
commit8d504d804ab657779254bdd37079d2442d75cbe8 (patch)
tree5cd936b894bc94749cb54f48d2dee3fbd64866b8 /drivers/ptp
parent40f4e372cba8a6729c997c0bda1fa03adf7f956e (diff)
downloadop-kernel-dev-8d504d804ab657779254bdd37079d2442d75cbe8.zip
op-kernel-dev-8d504d804ab657779254bdd37079d2442d75cbe8.tar.gz
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 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud