common: bouncebuf: Permit passing custom alignment check function
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 4 Apr 2020 10:45:02 +0000 (12:45 +0200)
committerPeng Fan <peng.fan@nxp.com>
Wed, 22 Apr 2020 12:41:56 +0000 (20:41 +0800)
commit8074ffe335bad50ffcc3d70ed1d9f3e3ffde9149
tree016e4e1adaae8fa91b68d99a262606692f1b220b
parent453d21381bda4452937a6d3c648230805b528b9b
common: bouncebuf: Permit passing custom alignment check function

Add extended version of the bounce_buffer_start(), which permits passing in
a custom alignment checker function for the buffer. This is useful e.g. on
systems with various DMA restrictions and where the checker function might
be more complex than a simple CPU cache alignment check.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
common/bouncebuf.c
include/bouncebuf.h