drm/vc4: hdmi: Block odd horizontal timings
authorMaxime Ripard <maxime@cerno.tech>
Thu, 29 Oct 2020 12:25:22 +0000 (13:25 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 19 Nov 2020 13:29:26 +0000 (14:29 +0100)
commit57fb32e632be4d406b4594829e3befdae1100c12
treef459ea58698d380c43ea844b50ccb7212b129d97
parent63495f6b4aede26e6f8fe3da69e5cfdd8a4ccc3b
drm/vc4: hdmi: Block odd horizontal timings

The FIFO between the pixelvalve and the HDMI controller runs at 2 pixels
per clock cycle, and cannot deal with odd timings.

Let's reject any mode with such timings.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201029122522.1917579-2-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.h