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)
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

Simple merge