diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-11-10 11:25:46 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-11 11:00:53 -0800 |
commit | b83dbc319990eda37f7eb6fd6516e70640ab3ac6 (patch) | |
tree | ac4eba0bca16353c6ce880a172747820b23c9ec7 /common/backlight_lid.c | |
parent | d79cabb0ad28edfecd9ec8f6ac4ded44d3f8cb16 (diff) | |
download | chrome-ec-b83dbc319990eda37f7eb6fd6516e70640ab3ac6.tar.gz |
usb_charger: disconnect usb switch until connection is debounced
Re-order logic in BC1.2 detection task so that we open the
USB switches immediately upon detecting a connection, then
debounce the connection, then reset the pericom and determine
BC1.2 charger type.
This fixes two problems:
- Problem where host could enumerate dut, detect disconnect,
and then re-enumerate.
- Problem where sometimes dut would detect a host workstation
as a proprietary charger because we weren't delaying long
enough after opening USB switches before triggering pericom
reset.
BUG=chrome-os-partner:47219
BRANCH=smaug
TEST=tested by connecting workstation to ryu (tested both
pluggin in A side first and C side first). Without this patch,
my workstation often see's disconnect and reconnect. With
this change we only get one connect.
Change-Id: I07cc3473ff32953fad3cc6d1db01b86b44969c4e
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/311804
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common/backlight_lid.c')
0 files changed, 0 insertions, 0 deletions