From 25ff5e7ece90b34e44531a6ce7b945781298d049 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Tue, 12 Nov 2013 14:25:03 -0800 Subject: spring: force re-detection when seeing DCP charger Sometimes the ID pin value read by the ADC is not stable for Type 1 chargers, the TSU6721 ends up deciding its a DCP charger (since DP/DN are wired as DCP), a second detection fixes that issue. Signed-off-by: Vincent Palatin BRANCH=spring BUG=chrome-os-partner:23987 TEST=On Spring, plug and unplug Liteon power brick lots of times and check detected type. Change-Id: If2eb58fa018ed8ca5231b98dab250038f6be3cd0 Reviewed-on: https://chromium-review.googlesource.com/176577 Reviewed-by: Vincent Palatin Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin --- board/spring/usb_charging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index bf91e257a5..a0445efc1a 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -835,6 +835,7 @@ static int usb_want_redetect(int dev_type) dev_type & TSU6721_TYPE_USB_HOST) return 1; return (dev_type & TSU6721_TYPE_NON_STD_CHG) || + (dev_type & TSU6721_TYPE_DCP) || (dev_type == TSU6721_TYPE_VBUS_DEBOUNCED); } -- cgit v1.2.1