]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sh_mobile: terminate DMA reads properly
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 29 Jan 2015 17:33:16 +0000 (18:33 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 30 Jan 2015 16:58:43 +0000 (17:58 +0100)
commit4fe8eb8a4ccab068b92ad93d4014526a802b4b33
tree09d15847c50950c5125a2b05ddaa3a683dcb3a3c
parent024dc90fef491e535c4a4064b18351772965fac2
i2c: sh_mobile: terminate DMA reads properly

DMA read requests could miss proper termination, so two more bytes would
have been read via PIO overwriting the end of the buffer with wrong
data. Make DMA stop handling more readable while we are here.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-sh_mobile.c