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

Commit 0c4d6af4 authored by Li Jun's avatar Li Jun Committed by Peter Chen
Browse files

usb: chipidea: debug: add low power mode check before print registers



Since the required clock to access registers is gated off in low power mode,
add ci->in_lpm check before try to dump registers value.

Signed-off-by: default avatarLi Jun <jun.li@freescale.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
parent 9b6567e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -336,8 +336,8 @@ static int ci_registers_show(struct seq_file *s, void *unused)
	struct ci_hdrc *ci = s->private;
	u32 tmp_reg;

	if (!ci)
		return 0;
	if (!ci || ci->in_lpm)
		return -EPERM;

	/* ------ Registers ----- */
	tmp_reg = hw_read_intr_enable(ci);