diff options
author | Sam Hurst <shurst@google.com> | 2020-03-13 11:24:05 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-21 03:00:54 +0000 |
commit | 777f57c6f406292435dd7f836914e3f7ad435ed5 (patch) | |
tree | 2856ff1f7db9280564ecfaa6d119bc207bde3637 /include/usb_emsg.h | |
parent | d68abb5d52c3474aa247a47c23375354d08be600 (diff) | |
download | chrome-ec-777f57c6f406292435dd7f836914e3f7ad435ed5.tar.gz |
TCPMv2: Split PD message buffers into separate TX/RX buffers
Use separate buffers for transmit and reception of PD
messages. This prevents the potential corruption of PD
messages waiting to be transmitted when an unexpected PD
message is received
BUG=b:150637227
BUG=b:149662829
BRANCH=none
TEST=make -j buildall
Manual tests:
Tested hatch device and powered dock. Used total phase
to verify that transmitted messages were not corrupted
by unexpected message reception.
Change-Id: I12df471f59fb7510e642bb92b769ccbddd79c84f
Signed-off-by: Sam Hurst <shurst@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2103253
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/usb_emsg.h')
-rw-r--r-- | include/usb_emsg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/usb_emsg.h b/include/usb_emsg.h index 7847cf6967..759864b2dc 100644 --- a/include/usb_emsg.h +++ b/include/usb_emsg.h @@ -18,6 +18,6 @@ struct extended_msg { }; /* Defined in usb_prl_sm.c */ -extern struct extended_msg emsg[CONFIG_USB_PD_PORT_MAX_COUNT]; - +extern struct extended_msg tx_emsg[CONFIG_USB_PD_PORT_MAX_COUNT]; +extern struct extended_msg rx_emsg[CONFIG_USB_PD_PORT_MAX_COUNT]; #endif /* __CROS_EC_USB_EBUF_H */ |