File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,15 @@ void pe_snk_ready_run(void *obj)
432
432
case PD_DATA_SOURCE_CAP :
433
433
pe_set_state (dev , PE_SNK_EVALUATE_CAPABILITY );
434
434
break ;
435
+ case PD_DATA_VENDOR_DEF :
436
+ /**
437
+ * VDM is unsupported. PD2.0 ignores and PD3.0
438
+ * reply with not supported.
439
+ */
440
+ if (prl_get_rev (dev , PD_PACKET_SOP ) > PD_REV20 ) {
441
+ pe_set_state (dev , PE_SEND_NOT_SUPPORTED );
442
+ }
443
+ break ;
435
444
default :
436
445
pe_set_state (dev , PE_SEND_NOT_SUPPORTED );
437
446
}
Original file line number Diff line number Diff line change @@ -408,6 +408,15 @@ void pe_src_ready_run(void *obj)
408
408
case PD_DATA_REQUEST :
409
409
pe_set_state (dev , PE_SRC_NEGOTIATE_CAPABILITY );
410
410
break ;
411
+ case PD_DATA_VENDOR_DEF :
412
+ /**
413
+ * VDM is unsupported. PD2.0 ignores and PD3.0
414
+ * reply with not supported.
415
+ */
416
+ if (prl_get_rev (dev , PD_PACKET_SOP ) > PD_REV20 ) {
417
+ pe_set_state (dev , PE_SEND_NOT_SUPPORTED );
418
+ }
419
+ break ;
411
420
default :
412
421
pe_set_state (dev , PE_SEND_NOT_SUPPORTED );
413
422
}
You can’t perform that action at this time.
0 commit comments