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

Commit 49f69f74 authored by Ravikishore Pampana's avatar Ravikishore Pampana
Browse files

msm: camera: core: Change log message to rate limited



Change the log message to rate limited to prevent the excessive
log issues.

Change-Id: Ie4f6784dc605f58dc6da86c2129a35047a082717
Signed-off-by: default avatarRavikishore Pampana <rpampana@codeaurora.org>
parent 69b963bc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -405,7 +405,8 @@ static void cam_cpastop_work(struct work_struct *work)
		if ((payload->irq_status & camnoc_info->irq_err[i].sbm_port) &&
			(camnoc_info->irq_err[i].enable)) {
			irq_type = camnoc_info->irq_err[i].irq_type;
			CAM_ERR(CAM_CPAS, "Error occurred, type=%d", irq_type);
			CAM_ERR_RATE_LIMIT(CAM_CPAS,
				"Error occurred, type=%d", irq_type);
			memset(&irq_data, 0x0, sizeof(irq_data));
			irq_data.irq_type = (enum cam_camnoc_irq_type)irq_type;

+1 −1
Original line number Diff line number Diff line
@@ -531,7 +531,7 @@ static int cam_smmu_iommu_fault_handler(struct iommu_domain *domain,
	}

	if (++iommu_cb_set.cb_info[idx].pf_count > g_num_pf_handled) {
		CAM_INFO(CAM_SMMU, "PF already handled %d %d %d",
		CAM_INFO_RATE_LIMIT(CAM_SMMU, "PF already handled %d %d %d",
			g_num_pf_handled, idx,
			iommu_cb_set.cb_info[idx].pf_count);
		return -EINVAL;