summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2021-04-07 16:34:34 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-14 15:17:57 +0000
commit2588da76952a53c486f019fc09f5a46e2af32074 (patch)
tree24b9b8b78b2b260893b8dd8c6d5b4a952f34c430
parent502751aafb75623c4279e1efbcb944e536859690 (diff)
downloadchrome-ec-2588da76952a53c486f019fc09f5a46e2af32074.tar.gz
TCPMv2: Set SOP before requesting chunk
When requesting the next chunk in the RCH state machine, set the SOP type for the request to the type of the just-received chunk response. Do not just use the SOP type of the last transmitted message. BUG=b:179443762 TEST=Pass TD.PD.SRC3.E32 with SOP' traffic immediately before chunk 0 BRANCH=firmware-volteer-13672.B-main Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Ifb520bb7ee439ea895b11938395a943d5ca32edf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2812138 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Scott Collyer <scollyer@chromium.org> (cherry picked from commit d1924be854913acf1b42fc9fff9c547c947b72b7) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2825350 Tested-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
-rw-r--r--common/usbc/usb_prl_sm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usbc/usb_prl_sm.c b/common/usbc/usb_prl_sm.c
index bc5b6fa453..5991f41d00 100644
--- a/common/usbc/usb_prl_sm.c
+++ b/common/usbc/usb_prl_sm.c
@@ -1633,6 +1633,7 @@ static void rch_requesting_chunk_entry(const int port)
pdmsg[port].data_objs = 1;
pdmsg[port].ext = 1;
+ pdmsg[port].xmit_type = prl_rx[port].sop;
PRL_TX_SET_FLAG(port, PRL_FLAGS_MSG_XMIT);
task_set_event(PD_PORT_TO_TASK_ID(port), PD_EVENT_TX);
}