]> git.dujemihanovic.xyz Git - u-boot.git/commit
scsi: Add buffer_aligned check pass-through
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 13 Aug 2023 23:50:00 +0000 (01:50 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Aug 2023 19:17:53 +0000 (15:17 -0400)
commit4f543e82b9831333bc0effe9540d8e6a9dde3cb5
treef228a79d79aa17bc67221bb341c3c92a869b8f98
parent75191f75bce45f3b9aff607c88f17778d3805c61
scsi: Add buffer_aligned check pass-through

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. This is
a pass-through callback from block uclass to drivers.

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