Skip to content
  • Marek Vasut's avatar
    common: bouncebuf: Permit passing custom alignment check function · 8074ffe3
    Marek Vasut authored and Peng Fan's avatar Peng Fan committed
    
    
    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: default avatarMarek 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>
    8074ffe3