]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/sun4i: dw-hdmi: Fix max. frequency for H6
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 9 Feb 2021 17:59:00 +0000 (18:59 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 10 Feb 2021 10:20:38 +0000 (11:20 +0100)
It turns out that reasoning for lowering max. supported frequency is
wrong. Scrambling works just fine. Several now fixed bugs prevented
proper functioning, even with rates lower than 340 MHz. Issues were just
more pronounced with higher frequencies.

Fix that by allowing max. supported frequency in HW and fix the comment.

Fixes: cd9063757a22 ("drm/sun4i: DW HDMI: Lower max. supported rate for H6")
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209175900.7092-6-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c

index 23773a5e0650bf8aa6eb04b315415a20d29e1412..bbdfd5e26ec88dbf1e9f115f5e0e6f48a29c1841 100644 (file)
@@ -47,11 +47,9 @@ sun8i_dw_hdmi_mode_valid_h6(struct dw_hdmi *hdmi, void *data,
 {
        /*
         * Controller support maximum of 594 MHz, which correlates to
-        * 4K@60Hz 4:4:4 or RGB. However, for frequencies greater than
-        * 340 MHz scrambling has to be enabled. Because scrambling is
-        * not yet implemented, just limit to 340 MHz for now.
+        * 4K@60Hz 4:4:4 or RGB.
         */
-       if (mode->clock > 340000)
+       if (mode->clock > 594000)
                return MODE_CLOCK_HIGH;
 
        return MODE_OK;