Skip to content
Commit b5a73bf4 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

scsi: check that busses support the DMA API before setting dma parameters



We'll start throwing warnings soon when dma_set_seg_boundary and
dma_set_max_seg_size are called on devices for buses that don't fully
support the DMA API.  Prepare for that by making the calls in the SCSI
midlayer conditional.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy's avatarRobin Murphy <robin.murphy@arm.com>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 833bd284
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment