From 63aaf1e03a8fe462fe6031373bd592e8da67c1dd Mon Sep 17 00:00:00 2001 From: Naveen Kumar S Date: Mon, 24 Aug 2015 17:24:41 +0530 Subject: [PATCH] video: tegra: hdmi: fix mode_filter mode rejection When comparing Pixel clock in Pico Seconds, we should reject those modes which are less than maximum supported pixel clock in pico seconds. This is equivalent to rejecting modes that need a higher pixel clock frequency than maximum pixel clock. bug 200130894 Change-Id: Ie9b0f64867533ad9b4234216d15c56e9062d4a4e Signed-off-by: Naveen Kumar S Reviewed-on: http://git-master/r/788160 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venu Byravarasu Tested-by: Venu Byravarasu --- drivers/video/tegra/dc/hdmi2.0.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/video/tegra/dc/hdmi2.0.c b/drivers/video/tegra/dc/hdmi2.0.c index 43d9133cb34..2af65a99409 100644 --- a/drivers/video/tegra/dc/hdmi2.0.c +++ b/drivers/video/tegra/dc/hdmi2.0.c @@ -508,8 +508,12 @@ static bool tegra_hdmi_fb_mode_filter(const struct tegra_dc *dc, !tegra_edid_is_scdc_present(hdmi->edid))) return false; + /* + * Check if mode's pixel clock requirement can be satisfied. Note that + * the pixclock value is in pico seconds. + */ if (mode->pixclock && tegra_dc_get_out_max_pixclock(dc) && - mode->pixclock > tegra_dc_get_out_max_pixclock(dc)) + mode->pixclock < tegra_dc_get_out_max_pixclock(dc)) return false; /* -- 2.39.2