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

Commit fa4a2a72 authored by Prakash Gupta's avatar Prakash Gupta
Browse files

staging: android: ion: rate limit warning in ion_sgl_sync_range



Rate limit warning in ion_sgl_sync_range to prevent watchdog timeout as a
result of the kernel logs being flooded.

Change-Id: I8e32a2e67f1971cc702d93db5c95ff9ff09445f3
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 23c1b97a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * drivers/staging/android/ion/ion.c
 *
 * Copyright (C) 2011 Google, Inc.
 * Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
@@ -577,7 +577,8 @@ static int ion_sgl_sync_range(struct device *dev, struct scatterlist *sgl,
			break;

		if (i > 0) {
			pr_warn("Partial cmo only supported with 1 segment\n"
			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;