summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-09-08 08:24:08 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-08 23:32:47 -0700
commit550f5e67d3747421b068d91645841b6573dc3ebe (patch)
treeee04beb51784578876ff36fc9a0acb8e0a570a45
parent5dd75de0fb0d921ab50bd42be54a823ffc46c92d (diff)
downloadchrome-ec-stabilize-7442.B.tar.gz
pd: make sure attention command is treated as an SVDMstabilze-7441.Bstabilize-7442.B
Make sure attention command is treated as a standard VDM. BUG=none BRANCH=none TEST=make -j buildall Change-Id: I7b181cbae9836b13bd461efd15c96f5cb414d0c0 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/297971 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org>
-rw-r--r--common/usb_pd_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c
index 11a1f62c9c..37cc4a2d60 100644
--- a/common/usb_pd_protocol.c
+++ b/common/usb_pd_protocol.c
@@ -1041,7 +1041,7 @@ void pd_send_vdm(int port, uint32_t vid, int cmd, const uint32_t *data,
/* set VDM header with VID & CMD */
pd[port].vdo_data[0] = VDO(vid, ((vid & USB_SID_PD) == USB_SID_PD) ?
- 1 : (PD_VDO_CMD(cmd) < CMD_ATTENTION), cmd);
+ 1 : (PD_VDO_CMD(cmd) <= CMD_ATTENTION), cmd);
queue_vdm(port, pd[port].vdo_data, data, count);
task_wake(PD_PORT_TO_TASK_ID(port));