drm/sun4i: dsi: Enforce boundaries on the start delay
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 11 Feb 2019 14:41:24 +0000 (15:41 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 19 Feb 2019 10:08:25 +0000 (11:08 +0100)
commitefa31801203ac2f5c6a82a28cb991c7163ee0f1d
tree67f9e33e3ef2c9bd48c8b18edcd7767d81450e00
parentda676c6aa6413d59ab0a80c97bbc273025e640b2
drm/sun4i: dsi: Enforce boundaries on the start delay

The Allwinner BSP makes sure that we don't end up with a null start delay
or with a delay larger than vtotal.

The former condition is likely to happen now with the reworked start delay,
so make sure we enforce the same boundaries.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/c9889cf5f7a3d101ef380905900b45a182596f56.1549896081.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c