]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-mapping: don't return errors from dma_set_max_seg_size
authorChristoph Hellwig <hch@lst.de>
Fri, 19 Jul 2024 04:07:38 +0000 (06:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Aug 2024 04:22:49 +0000 (07:22 +0300)
commit334304ac2baca7f3e821c47cf5129d90e7a6b1e6
tree97bf1f87e108962f636331aa4f9ac4b0a5627a96
parent560a861ab4174b42240157ab5cebe36b8c7bc418
dma-mapping: don't return errors from dma_set_max_seg_size

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>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC
13 files changed:
drivers/accel/qaic/qaic_drv.c
drivers/dma/idma64.c
drivers/dma/pl330.c
drivers/dma/qcom/bam_dma.c
drivers/dma/sh/rcar-dmac.c
drivers/dma/ste_dma40.c
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/media/common/videobuf2/videobuf2-dma-contig.c
drivers/media/pci/intel/ipu6/ipu6.c
drivers/mmc/host/mmci_stm32_sdmmc.c
drivers/net/ethernet/microsoft/mana/gdma_main.c
drivers/scsi/lpfc/lpfc_init.c
include/linux/dma-mapping.h