Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23a04c5e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dma-buf: suppress warnings for direct dma clients"

parents 37a3bfb6 ccc854ca
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -360,9 +360,11 @@ static int mem_buf_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;

		if (i > 0) {
			if (get_dma_ops(dev)) {
				pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
					"is dma_set_max_seg_size being set on dev:%s\n",
					dev_name(dev));
			}
			return -EINVAL;
		}
	}
+5 −3
Original line number Diff line number Diff line
@@ -500,9 +500,11 @@ static int ion_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;

		if (i > 0) {
			if (get_dma_ops(dev)) {
				pr_warn_ratelimited("Partial cmo only supported with 1 segment\n"
					"is dma_set_max_seg_size being set on dev:%s\n",
					dev_name(dev));
			}
			return -EINVAL;
		}
	}