mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
BACKPORT: dma-buf: return success for cmo of dummy clients
kgsl-3d0 is dummy device which don't need cmo return success along with suppressing warnings for dummy clients. Change-Id: I4ddcee898931cf017e21c8ecbfec863b4566d962 Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
This commit is contained in:
parent
7393ba39db
commit
55e0fe8b63
1 changed files with 6 additions and 5 deletions
|
|
@ -500,11 +500,12 @@ 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));
|
||||
}
|
||||
if (!get_dma_ops(dev))
|
||||
return 0;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue