提交 0c4d6af4 编写于 作者: L Li Jun 提交者: Peter Chen

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: NLi Jun <jun.li@freescale.com>
Signed-off-by: NPeter Chen <peter.chen@freescale.com>
上级 9b6567e1
...@@ -336,8 +336,8 @@ static int ci_registers_show(struct seq_file *s, void *unused) ...@@ -336,8 +336,8 @@ static int ci_registers_show(struct seq_file *s, void *unused)
struct ci_hdrc *ci = s->private; struct ci_hdrc *ci = s->private;
u32 tmp_reg; u32 tmp_reg;
if (!ci) if (!ci || ci->in_lpm)
return 0; return -EPERM;
/* ------ Registers ----- */ /* ------ Registers ----- */
tmp_reg = hw_read_intr_enable(ci); tmp_reg = hw_read_intr_enable(ci);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册