mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user