summaryrefslogtreecommitdiff
path: root/drivers/dma/qcom
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-07-19 06:07:38 +0200
committerChristoph Hellwig <hch@lst.de>2024-08-29 07:22:49 +0300
commit334304ac2baca7f3e821c47cf5129d90e7a6b1e6 (patch)
tree97bf1f87e108962f636331aa4f9ac4b0a5627a96 /drivers/dma/qcom
parent560a861ab4174b42240157ab5cebe36b8c7bc418 (diff)
downloadlinux-334304ac2baca7f3e821c47cf5129d90e7a6b1e6.tar.gz
linux-334304ac2baca7f3e821c47cf5129d90e7a6b1e6.tar.bz2
linux-334304ac2baca7f3e821c47cf5129d90e7a6b1e6.zip
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
Diffstat (limited to 'drivers/dma/qcom')
-rw-r--r--drivers/dma/qcom/bam_dma.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c
index 5e7d332731e0..368ffaa40037 100644
--- a/drivers/dma/qcom/bam_dma.c
+++ b/drivers/dma/qcom/bam_dma.c
@@ -1325,11 +1325,7 @@ static int bam_dma_probe(struct platform_device *pdev)
/* set max dma segment size */
bdev->common.dev = bdev->dev;
- ret = dma_set_max_seg_size(bdev->common.dev, BAM_FIFO_SIZE);
- if (ret) {
- dev_err(bdev->dev, "cannot set maximum segment size\n");
- goto err_bam_channel_exit;
- }
+ dma_set_max_seg_size(bdev->common.dev, BAM_FIFO_SIZE);
platform_set_drvdata(pdev, bdev);