qcacmn: Rate limit CE access log to avoid watchdog bark

Rate limit CE access log to avoid watch dog bark because of
excessive console logging.

Change-Id: I460a39f02206f651eafc26febd5628766e471483
CRs-Fixed: 2207647
diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c
index a538f3d..d63d342 100644
--- a/hif/src/ce/ce_service.c
+++ b/hif/src/ce/ce_service.c
@@ -1977,7 +1977,7 @@
 		CE_ENGINE_INT_STATUS_CLEAR(scn, ctrl_addr,
 					   HOST_IS_COPY_COMPLETE_MASK);
 	} else {
-		HIF_ERROR("%s: target access is not allowed", __func__);
+		hif_err_rl("%s: target access is not allowed", __func__);
 		return;
 	}
 
@@ -2181,7 +2181,8 @@
 					   CE_WATERMARK_MASK |
 					   HOST_IS_COPY_COMPLETE_MASK);
 		} else {
-			HIF_ERROR("%s: target access is not allowed", __func__);
+			hif_err_rl("%s: target access is not allowed",
+				   __func__);
 			goto unlock_end;
 		}
 	}
@@ -2309,7 +2310,7 @@
 		return;
 
 	if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
-		HIF_ERROR("%s: target access is not allowed", __func__);
+		hif_err_rl("%s: target access is not allowed", __func__);
 		return;
 	}
 
diff --git a/hif/src/snoc/hif_io32_snoc.h b/hif/src/snoc/hif_io32_snoc.h
index f22ac6b..ea0dd29 100644
--- a/hif/src/snoc/hif_io32_snoc.h
+++ b/hif/src/snoc/hif_io32_snoc.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -48,7 +48,7 @@
 
 	offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
 	if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
-		HIF_ERROR("%s: target access is not allowed", __func__);
+		hif_err_rl("%s: target access is not allowed", __func__);
 		return;
 	}
 	hif_write32_mb(scn->mem + offset, 1);
@@ -61,13 +61,13 @@
 
 	offset = HOST_IE_ADDRESS + CE_BASE_ADDRESS(ce_id);
 	if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
-		HIF_ERROR("%s: target access is not allowed", __func__);
+		hif_err_rl("%s: target access is not allowed", __func__);
 		return;
 	}
 	hif_write32_mb(scn->mem + offset, 0);
 
 	if (!TARGET_REGISTER_ACCESS_ALLOWED(scn)) {
-		HIF_ERROR("%s: target access is not allowed", __func__);
+		hif_err_rl("%s: target access is not allowed", __func__);
 		return;
 	}
 	hif_read32_mb(scn->mem + offset);