]> 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)
commitba51411f0a374a11658e6b3c0d930bbae3d2c156
treee68be308be2431de60051bfcfdc09ae82983ea39
parent355c9fcea8b5bc9aaaf30dc77e0b3359bd854e3a
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