mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
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:
parent
a74d29a417
commit
07025f5ba5
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue