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

Commit 93192a1b authored by David Collins's avatar David Collins
Browse files

regulator: cpr-regulator: use debug log level for ISR unknown flag message



Change the cpr-regulator interrupt handler log message that is
printed if an unknown IRQ status bit is set from err to debug
log level.  This message is printed in the case that software
changes the voltage corner of a cpr-regulator device during the
interval between when a CPR interrupt physically triggers and
when the handler for it is executed.  Since this behavior does
not correspond to an error case, the message should only be
printed for debugging purposes.

Change-Id: Ib1a00e456186586e1ccd025a817bf60b04f59745
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent e77d5022
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -869,10 +869,10 @@ static irqreturn_t cpr_irq_handler(int irq, void *dev)
		cpr_irq_clr_nack(cpr_vreg);
	} else if (reg_val & CPR_INT_MID) {
		/* RBCPR_CTL_SW_AUTO_CONT_ACK_EN is enabled */
		cpr_debug_irq(cpr_vreg, "IRQ occured for Mid Flag\n");
		cpr_debug_irq(cpr_vreg, "IRQ occurred for Mid Flag\n");
	} else {
		cpr_err(cpr_vreg, "IRQ occured for unknown flag (0x%08x)\n",
			reg_val);
		cpr_debug_irq(cpr_vreg,
			"IRQ occurred for unknown flag (0x%08x)\n", reg_val);
	}

	/* Save register values for the corner */