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)
commit32e224090fa310a58fdb47049caf631272ceb044
tree09d15847c50950c5125a2b05ddaa3a683dcb3a3c
parentd5fd120e7860c2b3d4c936a2ebadb6b244bec4c8
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