From 550f5e67d3747421b068d91645841b6573dc3ebe Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Tue, 8 Sep 2015 08:24:08 -0700 Subject: pd: make sure attention command is treated as an SVDM 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 Reviewed-on: https://chromium-review.googlesource.com/297971 Reviewed-by: Randall Spangler Reviewed-by: Todd Broch --- common/usb_pd_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.1