]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check
authorMaxime Ripard <maxime@cerno.tech>
Tue, 15 Dec 2020 15:42:37 +0000 (16:42 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 16 Dec 2020 09:11:28 +0000 (10:11 +0100)
commit914dc2817097dca52d87ce46acc720b0b0cc3d6a
treecba56ab43a2c1098c55e90a5a963c3b1be03faba
parente1be9aec36b962854df8fb98c446a2d7b1678dc9
drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check

Commit 745d363dd482 ("drm/vc4: hdmi: Make sure our clock rate is within
limits") was intended to compute the pixel rate to make sure we remain
within the boundaries of what the hardware can provide.

However, unlike what mode_valid was checking for, we forgot to take
into account the clock doubling flag that can be set for modes. Let's
honor that flag if it's there.

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Fixes: 745d363dd482 ("drm/vc4: hdmi: Make sure our clock rate is within limits")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20201215154243.540115-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c