Re: [PATCH 1/4] scsi: check that busses support the DMA API before setting dma parameters

2024-08-27 Thread Robin Murphy
On 24/08/2024 4:49 am, Christoph Hellwig wrote: 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. Just thinking ahead

[PATCH 1/4] scsi: check that busses support the DMA API before setting dma parameters

2024-08-23 Thread Christoph Hellwig
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: Christoph Hellwig --- drivers/scsi/scsi_lib.c | 11 ++