drm/sun4i: rgb: Validate the clock rate
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 21 Apr 2016 09:25:26 +0000 (11:25 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 30 May 2016 06:28:33 +0000 (08:28 +0200)
commitbb43d40d7c830da5f623e3938fef908b003b7523
tree8260d627de2bdf2b7d5c24f92aae6eb1ffa993bc
parent4731a72df273bdbd225445424057c15dbb8d3495
drm/sun4i: rgb: Validate the clock rate

Our pixel clock cannot reach a high enough rate for some rather high while
common resolutions (like 1080p60).

Make sure we filter the resolutions we cannot reach in our mode_valid
function.

Fixes: 29e57fab97fc ("drm: sun4i: Add RGB output")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_rgb.c