diff options
Diffstat (limited to 'target/linux/brcm2708/patches-4.4/0515-drm-vc4-Disallow-interlaced-modes-on-DPI.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.4/0515-drm-vc4-Disallow-interlaced-modes-on-DPI.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/target/linux/brcm2708/patches-4.4/0515-drm-vc4-Disallow-interlaced-modes-on-DPI.patch b/target/linux/brcm2708/patches-4.4/0515-drm-vc4-Disallow-interlaced-modes-on-DPI.patch deleted file mode 100644 index 3213c53dcd..0000000000 --- a/target/linux/brcm2708/patches-4.4/0515-drm-vc4-Disallow-interlaced-modes-on-DPI.patch +++ /dev/null @@ -1,37 +0,0 @@ -From b03aa8d12928c3413b3f02fd7c52d900edee196a Mon Sep 17 00:00:00 2001 -From: Mario Kleiner <mario.kleiner.de@gmail.com> -Date: Tue, 19 Jul 2016 20:58:57 +0200 -Subject: [PATCH] drm/vc4: Disallow interlaced modes on DPI. - -We already don't expose such modes to userspace, but make -sure userspace can't sneak some interlaced mode in. - -Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> -Signed-off-by: Eric Anholt <eric@anholt.net> ---- - drivers/gpu/drm/vc4/vc4_dpi.c | 11 +++++++++++ - 1 file changed, 11 insertions(+) - ---- a/drivers/gpu/drm/vc4/vc4_dpi.c -+++ b/drivers/gpu/drm/vc4/vc4_dpi.c -@@ -349,9 +349,20 @@ static void vc4_dpi_encoder_enable(struc - } - } - -+static bool vc4_dpi_encoder_mode_fixup(struct drm_encoder *encoder, -+ const struct drm_display_mode *mode, -+ struct drm_display_mode *adjusted_mode) -+{ -+ if (adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) -+ return false; -+ -+ return true; -+} -+ - static const struct drm_encoder_helper_funcs vc4_dpi_encoder_helper_funcs = { - .disable = vc4_dpi_encoder_disable, - .enable = vc4_dpi_encoder_enable, -+ .mode_fixup = vc4_dpi_encoder_mode_fixup, - }; - - static const struct of_device_id vc4_dpi_dt_match[] = { |