The patch can fix 4Kp60 video mode failed to work afer cable
plugout/in.
DRM driver will not call mode set function if video mode isn't changed.
But for 4Kp60, scrambling and TMDS_Bit_Clock_Ratio should
reconfiguration after cable plugin.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
if (connector->status == connector_status_connected) {
/* Cable Connected */
+ /* For HDMI2.0 SCDC should setup again.
+ * So recovery pre video mode if it is 4Kp60 */
+ if (drm_mode_equal(&hdp->video.pre_mode, &edid_cea_modes[3]))
+ imx_hdp_mode_setup(hdp, &hdp->video.pre_mode);
DRM_INFO("HDMI/DP Cable Plug In\n");
enable_irq(hdp->irq[HPD_IRQ_OUT]);
} else if (connector->status == connector_status_disconnected) {