]> git.dujemihanovic.xyz Git - u-boot.git/commit
blk: Add bounce buffer support to read/write operations
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 13 Aug 2023 23:49:59 +0000 (01:49 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Aug 2023 19:17:53 +0000 (15:17 -0400)
commit75191f75bce45f3b9aff607c88f17778d3805c61
treef717b428fb9e9addb9bb2ed28295c8d176104738
parente2b5cc608b23418d5bcd5e2fe0b5d93593d02e97
blk: Add bounce buffer support to read/write operations

Some devices have limited DMA capabilities and require that the
buffers passed to them fit specific properties. Add new optional
callback which can be used at driver level to indicate whether a
buffer alignment is suitable for the device DMA or not, and
trigger use of generic bounce buffer implementation to help use
of unsuitable buffers at the expense of performance degradation.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/block/blk-uclass.c
include/blk.h