正插正常会打印如下日志:
dw-dp fde50000.dp: full-training link: 2 lanes at 5400 MHz
[ 237.031115][ T373] dw-dp fde50000.dp: clock recovery succeeded
[ 237.033327][ T373] dw-dp fde50000.dp: channel equalization succeeded
反插不正常会打印如下日志:
dw-dp fde50000.dp: full-training link: 2 lanes at 5400 MHz
[ 31.672934] [ T361] dw-dp fde50000.dp: clock recovery succeeded
[ 31.681841] [ T361] dw-dp fde50000.dp: channel equalization failed, downgrading link
[ 31.681924] [ T361] dw-dp fde50000.dp: full-training link: 2 lanes at 2700 MHz
[ 31.684573] [ T361] dw-dp fde50000.dp: clock recovery succeeded
[ 31.693606] [ T361] dw-dp fde50000.dp: channel equalization failed, downgrading link
[ 31.694069] [ T361] dw-dp fde50000.dp: full link training failed: -7
[ 31.694099] [ T361] dw-dp fde50000.dp: link training failed: -7
[ 31.694124] [ T361] dw-dp fde50000.dp: failed to enable link: -7
原因:硬件设计上将typec0_tx2n和typec0_tx2p接反了,typec0_rx2n和typec0_rx2p也接反了。
解决:调整回来以后就正常了。