TCPMv2: Modal Operations should clear in dfp_discovery_init
BRANCH=none
TEST=dock specified in bug should be able to PR_Swap
Tested-by: Denis Brockus
@@ -5601,6 +5601,8 @@ uint8_t pd_get_src_cap_cnt(int port)
void pd_dfp_discovery_init(int port)
{
+ PE_CLR_FLAG(port, PE_FLAGS_MODAL_OPERATION);
+
memset(pe[port].discovery, 0, sizeof(pe[port].discovery));
memset(pe[port].partner_amodes, 0, sizeof(pe[port].partner_amodes));
