]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: sh_mobile: use core helper to decide when to use DMA
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 4 Nov 2017 20:20:08 +0000 (21:20 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 3 Dec 2017 20:24:59 +0000 (21:24 +0100)
commitfe23aa9a1670b8800b251fc0400425e765c81880
treee68be308be2431de60051bfcfdc09ae82983ea39
parentd4e01186ae1c6045b5a508741f2446dffec7511c
i2c: sh_mobile: use core helper to decide when to use DMA

This ensures that we fall back to PIO if the message length is too small
for DMA being useful. Otherwise, we use DMA. A bounce buffer might be
applied by the helper if the original message buffer is not DMA safe.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
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