From 2bccdf8791cbecb3c2c39fe1c3bc11a4a21bf8ba Mon Sep 17 00:00:00 2001 From: Srinivas Sai Mannam Date: Thu, 8 Jun 2023 11:48:51 +0530 Subject: [PATCH] msm: ipa3: Rate limited the IPA error logging Rate limit the excessive ipa error logging in a test scenario. Change-Id: I200d9b659895b0f68490acfad581c643964a3823 Signed-off-by: Srinivas Sai Mannam --- drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_fltrt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_fltrt.c b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_fltrt.c index b792663caf..04bc9e3096 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_fltrt.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal_fltrt.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. */ #include "ipa.h" @@ -1297,12 +1298,12 @@ static int ipa_flt_generate_eq(enum ipa_ip_type ipt, if (ipt == IPA_IP_v4) { if (ipa_flt_generate_eq_ip4(ipt, attrib, eq_atrb)) { - IPAHAL_ERR("failed to build ipv4 flt eq rule\n"); + IPAHAL_ERR_RL("failed to build ipv4 flt eq rule\n"); return -EPERM; } } else if (ipt == IPA_IP_v6) { if (ipa_flt_generate_eq_ip6(ipt, attrib, eq_atrb)) { - IPAHAL_ERR("failed to build ipv6 flt eq rule\n"); + IPAHAL_ERR_RL("failed to build ipv6 flt eq rule\n"); return -EPERM; } } else {