charger/rt946x: Log the init failure
BRANCH=none
TEST=See the error message when init fails
Commit-Ready: Philip Chen
Tested-by: Philip Chen
@@ -746,9 +746,11 @@ static void rt946x_init(void)
}
CPRINTF("RT946X CHIP REV: 0x%02x\n", reg);
- if (rt946x_init_setting())
+ if (rt946x_init_setting()) {
+ CPRINTF("RT946X init failed\n");
return;
- CPRINTF("RT946X initialized\n");
+ }
+ CPRINTF("RT946X init succeeded\n");
}
DECLARE_HOOK(HOOK_INIT, rt946x_init, HOOK_PRIO_LAST);
