diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-06-12 10:52:35 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-12 23:51:51 +0000 |
commit | e96c8885d4e5f1947726328cd3731978c5399cb2 (patch) | |
tree | 6d2e4bc61791e198c63aabd7fa3468451da85200 /common | |
parent | 2af21940a3ead5d45cb703a3851868cc6e9b7fbe (diff) | |
download | chrome-ec-e96c8885d4e5f1947726328cd3731978c5399cb2.tar.gz |
pd: do not sleep when case closed debug communication is enabled
The case closed debugging feature is using the USB controller, so it
needs to disable the low power STOP mode of the MCU which is
incompatible with USB communication.
As the possibility of doing PD communication when a PD debug accessory
is plugged "re-appeared", just set/use the USB_PD sleep disable bit with
the debug accessory rather than creating a new one.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=smaug
BUG=chrome-os-partner:41399
TEST=on Ryu, connect to the EC console through Suzy-Q and issue the
"apshutdown" command, then see the EC USB console is still alive.
Change-Id: I8668b28220202ce6419f18cff13d57d410e3e9f3
Reviewed-on: https://chromium-review.googlesource.com/277116
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_protocol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 7b72a44229..56088f4d08 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -199,8 +199,7 @@ int pd_is_connected(int port) pd[port].task_state != PD_STATE_SNK_DISCONNECTED_DEBOUNCE, /* source */ pd[port].task_state != PD_STATE_SRC_DISCONNECTED && - pd[port].task_state != PD_STATE_SRC_DISCONNECTED_DEBOUNCE && - pd[port].task_state != PD_STATE_SRC_ACCESSORY); + pd[port].task_state != PD_STATE_SRC_DISCONNECTED_DEBOUNCE); } static inline void set_state(int port, enum pd_states next_state) |