Commit 2158f2c7 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

drm/omap: verify that display x-res is divisible by 8



DISPC requires the x resolution to be divisible by 8 when stall mode is
not used.

Add a check to the DPI driver to verify this.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent d31966ff
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -513,6 +513,9 @@ static int dpi_check_timings(struct omap_dss_device *dssdev,
	struct dpi_clk_calc_ctx ctx;
	bool ok;

	if (timings->x_res % 8 != 0)
		return -EINVAL;

	if (mgr && !dispc_mgr_timings_ok(mgr->id, timings))
		return -EINVAL;