From 5abf2c5f69d1cf1ada95e7ab7dd2779aa42002bd Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Mon, 12 Aug 2024 15:56:59 +0800 Subject: [PATCH] drm/rockchip: dw_hdmi: Output max rate if support frl mode and rate in edid is 0 Change-Id: Ibd4d4f16478412a2a3260ac717b0ba53e80e7740 Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 256dfcbe83e0..8e0e21117749 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -2661,7 +2661,8 @@ secondary: if (hdmi->link_cfg.frl_lanes > frl_lanes) hdmi->link_cfg.frl_lanes = frl_lanes; /* 40G is preferred */ - } else if (hdmi->link_cfg.rate_per_lane >= 12) { + } else if (hdmi->link_cfg.rate_per_lane >= 12 || + !hdmi->link_cfg.rate_per_lane) { hdmi->link_cfg.frl_lanes = 4; hdmi->link_cfg.rate_per_lane = 12; }