drm/vc4: hdmi: Make sure our clock rate is within limits
authorMaxime Ripard <maxime@cerno.tech>
Thu, 29 Oct 2020 12:25:21 +0000 (13:25 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 19 Nov 2020 13:29:13 +0000 (14:29 +0100)
commit63495f6b4aede26e6f8fe3da69e5cfdd8a4ccc3b
treee49b493d62f41a1702ed4bd2bc4fefbf25411be6
parentcdf117d6d38a127026e74114d63f32972f620c06
drm/vc4: hdmi: Make sure our clock rate is within limits

The HDMI controller cannot go above a certain pixel rate limit depending on
the generations, but that limit is only enforced in mode_valid at the
moment, which means that we won't advertise modes that exceed that limit,
but the userspace is still free to try to setup a mode that would.

Implement atomic_check to make sure we check it in that scenario too.

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-1-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c