summaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-10-11 14:48:40 -0700
committerJack Pham <jackp@codeaurora.org>2016-10-14 17:51:45 -0700
commit18da08334eb3355158544a02db35d48761584a22 (patch)
tree9b293c193b99763d474c3b450dc52a579b17161f /lib/test-string_helpers.c
parent5b100713ecb922b373c0334cf69b5dfae9f3a5c1 (diff)
usb: pd: Handle PD_ALLOWED within state machine
Charger may be able to detect a legacy cable connection in which PD is not supported however the state machine still needs to run in order to send the EXTCON_USB notification to start the USB controller in peripheral mode (assuming type is SDP or CDP). Move checking of PD_ALLOWED to the state machine which can be used to determine if moving beyond PE_SNK_STARTUP is allowed or not. The psy_changed() callback should only queue the work when either typec_mode or pd_allowed states have changed. Also move handling of the in_pr_swap flag to this function by absorbing the disconnect callback and clearing the flag when CC state indicates it is reconnected. Change-Id: I8879699531a49915e7286e4a166944709076fbd1 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions