]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dma-mapping: don't return errors from dma_set_min_align_mask
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Jul 2024 04:10:24 +0000 (06:10 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Aug 2024 04:22:36 +0000 (07:22 +0300)
commitc42a01264ba1497eb3193c08ff3c2656d98250a6
treed6cfae6000540ffa1c53db3a8f9fa1e5d8996710
parentb5a73bf4d1de95e620bf5f592557b81f71c76f0e
dma-mapping: don't return errors from dma_set_min_align_mask

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