]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commit1a038326c69f9df31122b9f9757cea89206fa94f
tree6991040725db936801d19d5b2bc38cd29fbb5eac
parenta032dcba1f5c379acca42a10d0588f86e0b38f20
drm/sun4i: dsi: Enforce boundaries on the start delay

BugLink: https://bugs.launchpad.net/bugs/1837517
[ Upstream commit efa31801203ac2f5c6a82a28cb991c7163ee0f1d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c