drm: rockchip: dw-hdmi: Set bus width 8 bits when check mode valid

4.19 kernel will check mode valid before encoder atomic check
when resolution switch. Because when checking mode the
detailed color format and color depth are not considered, some
mode can be mistaken for unsupported, such as 4K-60HZ YUV420 10 bits.
So bus width should be set 8 bits when check mode valid.

Change-Id: I0869868b73060bc0f539243d7fccb6c775141ec4
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2019-11-22 10:27:15 +08:00
committed by Tao Huang
parent bd1d86e5e3
commit 4d8a1760c1

View File

@@ -453,6 +453,10 @@ dw_hdmi_rockchip_mode_valid(struct drm_connector *connector,
if (hdmi->max_tmdsclk <= 340000 && mode->clock > 340000 &&
!drm_mode_is_420(&connector->display_info, mode))
return MODE_BAD;
if (hdmi->phy)
phy_set_bus_width(hdmi->phy, 8);
/*
* ensure all drm display mode can work, if someone want support more
* resolutions, please limit the possible_crtc, only connect to