diff options
author | Diana Z <dzigterman@chromium.org> | 2020-11-12 22:38:34 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-20 18:43:53 +0000 |
commit | c98936e40a87add7fe5a543e3851958b204149e1 (patch) | |
tree | f9b93cefc31f3e251dcdfc8c5c0957c808e25326 /test/usb_pe.h | |
parent | 6d1599b4a05de382b20f13e4677b534672678747 (diff) | |
download | chrome-ec-c98936e40a87add7fe5a543e3851958b204149e1.tar.gz |
TCPMv2: Store and report sink caps
Copy sink caps for later reference, and report them up to the AP in the
TYPEC_STATUS host command return. This also moves the location of the
DPM set for sink caps, to be symmetrical between source and sink inits.
Set the old unit tests to clear all DPM requests. New PE tests will
correctly handle our startup sequence, but the old tests may have
erratic behavior based on how many states run before the connection is
forced over to READY.
BRANCH=None
BUG=b:160009733,b:168862110
TEST=on drawcia, verify sink capabilities match those from PD traces
with several docks and dongles
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iadc6ef4c7364d7c709878a75fd5e707a965f77f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2540390
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'test/usb_pe.h')
-rw-r--r-- | test/usb_pe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/usb_pe.h b/test/usb_pe.h index fb5ac10f88..8c1177f1f3 100644 --- a/test/usb_pe.h +++ b/test/usb_pe.h @@ -152,5 +152,6 @@ void pe_clr_flag(int port, int flag); int pe_chk_flag(int port, int flag); int pe_get_all_flags(int port); void pe_set_all_flags(int port, int flags); +void pe_clr_dpm_requests(int port); #endif /* __CROS_TEST_USB_PE_H */ |