usb: pd: Do not respond to SVDM messages in PD 2.0

Since our device does not support responding to Structured VDMs
(VIF Responds_to_Discov_SOP_DFP and Responds_to_Discov_SOP_UFP
fields are both false), any initiated discovery messages must
simply be ignored rather than responding with a NAK.

This addresses test failures observed in TEST.PD.VDM.SRC.1,
TEST.PD.VDM.SRC.2, TEST.PD.VDM.SNK.1, TEST.PD.VDM.SNK.2,
and TEST.PD.VDM.SNK.5 of the USB PD Merged tests.

Change-Id: I70f97563e528e4cf6d2a3bce31af7a7c702d4824
Signed-off-by: Jack Pham <jackp@codeaurora.org>
This commit is contained in:
Jack Pham 2021-10-27 22:48:36 -07:00 • committed by Gerrit - the friendly Code Review server
commit 07025f5ba5

View file

@ -1634,11 +1634,6 @@ static void handle_vdm_rx(struct usbpd *pd, struct rx_msg *rx_msg)
0, SOP_MSG);
if (ret)
usbpd_set_state(pd, PE_SEND_SOFT_RESET);
} else {
usbpd_send_svdm(pd, svid, cmd,
SVDM_CMD_TYPE_RESP_NAK,
SVDM_HDR_OBJ_POS(vdm_hdr),
NULL, 0);
}
}
break;