]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dma-mapping: don't return errors from dma_set_seg_boundary
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Jul 2024 04:06:28 +0000 (06:06 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Aug 2024 04:22:42 +0000 (07:22 +0300)
commit560a861ab4174b42240157ab5cebe36b8c7bc418
treec40ffdfdfa03e4f09be5d1e26d3da0910a36ab56
parentc42a01264ba1497eb3193c08ff3c2656d98250a6
dma-mapping: don't return errors from dma_set_seg_boundary

A NULL dev->dma_parms indicates either a bus that is not DMA capable or
grave bug in the implementation of the bus code.

There isn't much the driver can do in terms of error handling for either
case, so just warn and continue as DMA operations will fail anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
include/linux/dma-mapping.h