mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
bangkk:en62680 PD TEST.PD.VDM.SNK.02&05
PROPAGATED_from (CR) Fix EU common charger failed case TEST.PD.VDM.SNK.02 Exit Mode without Entering TEST.PD.VDM.SNK.05 DR Swap in Modal Operation Change-Id: If642f90442175af9d5ae4b19bb588c45bb2bca88 Signed-off-by: Lei Chen <chenlei18@lenovo.com> Reviewed-on: https://gerrit.mot.com/3141838 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zonghua Liu <a17671@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/3239425 Reviewed-by: Bruno Oliveira <brunosoe@motorola.com> Reviewed-by: Deise Alves <deisema@motorola.com> Submit-Approved: Deise Alves <deisema@motorola.com>
This commit is contained in:
parent
1c37a3a2d1
commit
3feb6cd70d
1 changed files with 9 additions and 4 deletions
|
|
@ -1664,11 +1664,15 @@ static void handle_vdm_rx(struct usbpd *pd, struct rx_msg *rx_msg)
|
|||
/* Standard Discovery or unhandled messages go here */
|
||||
switch (cmd_type) {
|
||||
case SVDM_CMD_TYPE_INITIATOR:
|
||||
{
|
||||
if (!pd->has_dp || (cmd != USBPD_SVDM_ATTENTION)) {
|
||||
if (cmd != USBPD_SVDM_ATTENTION) {
|
||||
if(cmd == USBPD_SVDM_DISCOVER_IDENTITY)
|
||||
usbpd_send_svdm(pd, svid, cmd,
|
||||
SVDM_CMD_TYPE_RESP_NAK, 0, NULL, 0);
|
||||
return; /*NAK to dis*/
|
||||
SVDM_CMD_TYPE_RESP_NAK, 0, NULL, 0);
|
||||
else if (pd->spec_rev == USBPD_REV_30) {
|
||||
ret = pd_send_msg(pd, MSG_NOT_SUPPORTED, NULL,
|
||||
0, SOP_MSG);
|
||||
if (ret)
|
||||
usbpd_set_state(pd, PE_SEND_SOFT_RESET);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
@ -1836,6 +1840,7 @@ static void handle_get_src_cap_extended(struct usbpd *pd)
|
|||
u8 source_inputs;
|
||||
u8 num_batt;
|
||||
u8 pdp;
|
||||
u8 epr_source_pdp;
|
||||
} __packed caps = {0};
|
||||
|
||||
caps.vid = 0x22b8;
|
||||
|
|
|
|||
Loading…
Reference in a new issue