diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2020-04-29 10:29:50 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-02 05:39:59 +0000 |
commit | 6071cb1e1682796730f1f77072ae75c51b61c4f9 (patch) | |
tree | f1b966b06ebc6fcfab3ec4ecf8abbad0ac69cdbc /common/usb_pd_alt_mode_dfp.c | |
parent | b7633ed1efef02b83b6fe7e70c28e382bbaebd86 (diff) | |
download | chrome-ec-6071cb1e1682796730f1f77072ae75c51b61c4f9.tar.gz |
TCPMv2: Store Tx type in PE state
This will be used for VDM request state for discovery. Also change
names of identity discovery timer and counter fields to comport with PD
spec.
This is substantially based on https://crrev.com/c/2148427.
BUG=none
TEST=make buildall
BRANCH=none
Change-Id: Iabda5c4cd169944a6c84bc72f551de7eb82ab424
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2174463
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common/usb_pd_alt_mode_dfp.c')
-rw-r--r-- | common/usb_pd_alt_mode_dfp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/usb_pd_alt_mode_dfp.c b/common/usb_pd_alt_mode_dfp.c index 3ec48fa213..715dc9b995 100644 --- a/common/usb_pd_alt_mode_dfp.c +++ b/common/usb_pd_alt_mode_dfp.c @@ -510,6 +510,10 @@ enum idh_ptype get_usb_pd_cable_type(int port) return cable->type; } +/* + * TODO(b/152417597): Support SOP and SOP'; eliminate redundant code for port + * partner and cable identity discovery. + */ void dfp_consume_cable_response(int port, int cnt, uint32_t *payload, uint16_t head) { @@ -547,7 +551,6 @@ void dfp_consume_cable_response(int port, int cnt, uint32_t *payload, payload[VDO_INDEX_PTYPE_CABLE2]; cable->is_identified = 1; - cable->discovery = PD_DISC_COMPLETE; } } |