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

Commit d25f816d authored by Vishalsingh Hajeri's avatar Vishalsingh Hajeri
Browse files

msm: camera: cpas: Rate-limit CPAS IRQ error message



Avoids flood of IRQ error messages while debugging.

Change-Id: Ie7cf2078b6b2c4f3b3441f677846f7b6d8cfb8b8
Signed-off-by: default avatarVishalsingh Hajeri <vhajeri@codeaurora.org>
parent 9717b7b1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -365,7 +365,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;