A source or sink should receive the get_sink_cap message when in SRC_RDY or
SNK_RDY, if the port receives a get sink capability request before ready,
which means there is message sync error, we should do soft reset to recover
from it, instead of sending a reject message.
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
tcpm_queue_message(port, PD_MSG_DATA_SINK_CAP);
break;
default:
- tcpm_queue_message(port, PD_MSG_CTRL_REJECT);
+ tcpm_set_state(port, SOFT_RESET_SEND, 0);
break;
}
break;