usb: chipidea: debug: add low power mode check before print registers
authorLi Jun <jun.li@freescale.com>
Fri, 27 Mar 2015 11:43:01 +0000 (19:43 +0800)
committerPeter Chen <peter.chen@freescale.com>
Wed, 8 Apr 2015 06:32:00 +0000 (14:32 +0800)
commit0c4d6af42d8375e003f0e4626f2f661862b5df4b
treeda06d4595c2e0428296abe69126241d5e153ae62
parent9b6567e19bc55187bc1bb094b00a9f63acb30071
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: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/debug.c