OSDN Git Service

drm/amd/display: fix single link DVI has no display
authorCharlene Liu <charlene.liu@amd.com>
Mon, 30 Jul 2018 21:59:20 +0000 (17:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Aug 2018 22:21:49 +0000 (17:21 -0500)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index a38e7ad..326b3e9 100644 (file)
@@ -1812,6 +1812,8 @@ static void enable_link_hdmi(struct pipe_ctx *pipe_ctx)
        bool is_vga_mode = (stream->timing.h_addressable == 640)
                        && (stream->timing.v_addressable == 480);
 
+       if (stream->phy_pix_clk == 0)
+               stream->phy_pix_clk = stream->timing.pix_clk_khz;
        if (stream->phy_pix_clk > 340000)
                is_over_340mhz = true;