summaryrefslogtreecommitdiff
path: root/driver/bc12
diff options
context:
space:
mode:
Diffstat (limited to 'driver/bc12')
-rw-r--r--driver/bc12/pi3usb9201.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/bc12/pi3usb9201.c b/driver/bc12/pi3usb9201.c
index 08ed7baa6e..0facefdced 100644
--- a/driver/bc12/pi3usb9201.c
+++ b/driver/bc12/pi3usb9201.c
@@ -320,9 +320,11 @@ void usb_charger_task(void *u)
*/
bc12_power_up(port);
rv = pi3usb9201_get_mode(port, &mode);
- if (!rv && (mode != PI3USB9201_CDP_HOST_MODE))
+ if (!rv && (mode != PI3USB9201_CDP_HOST_MODE)) {
+ CPRINTS("pi3usb9201[p%d]: CDP_HOST mode", port);
pi3usb9201_set_mode(port,
PI3USB9201_CDP_HOST_MODE);
+ }
}
if (evt & USB_CHG_EVENT_CC_OPEN)