summaryrefslogtreecommitdiff
path: root/libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch
diff options
context:
space:
mode:
authorBruno Cichon <ebrasca.ebrasca@openmailbox.org>2018-01-30 22:41:05 +0000
committerBruno Cichon <ebrasca.ebrasca@openmailbox.org>2018-01-30 22:41:05 +0000
commitba1ae3317f7a021ff91b969f5226500c6d879367 (patch)
treee9f1170b1a63ee04961867f3a371645d683dc14e /libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch
parent9a47ed8ad319a96a3b4aa000642de77ab522a554 (diff)
downloadabslibre-ba1ae3317f7a021ff91b969f5226500c6d879367.tar.gz
abslibre-ba1ae3317f7a021ff91b969f5226500c6d879367.tar.bz2
abslibre-ba1ae3317f7a021ff91b969f5226500c6d879367.zip
Update libre/linux-libre to 4.14.15-gnu
Diffstat (limited to 'libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch')
-rw-r--r--libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch b/libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch
new file mode 100644
index 000000000..49fbe626e
--- /dev/null
+++ b/libre/linux-libre/0004-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch
@@ -0,0 +1,41 @@
+From e722c8d112f0aa9621d7d4da5223cfc7aeb45e88 Mon Sep 17 00:00:00 2001
+Message-Id: <e722c8d112f0aa9621d7d4da5223cfc7aeb45e88.1516188238.git.jan.steffens@gmail.com>
+In-Reply-To: <4e54373158caa50df5402fdd3db1794c5394026b.1516188238.git.jan.steffens@gmail.com>
+References: <4e54373158caa50df5402fdd3db1794c5394026b.1516188238.git.jan.steffens@gmail.com>
+From: Jim Bride <jim.bride@linux.intel.com>
+Date: Mon, 6 Nov 2017 13:38:57 -0800
+Subject: [PATCH 4/4] drm/i915/edp: Only use the alternate fixed mode if it's
+ asked for
+
+In commit dc911f5bd8aa ("drm/i915/edp: Allow alternate fixed mode for
+eDP if available."), the patch allows for the use of an alternate fixed
+mode if it is available, but the patch was not ensuring that the only
+time the alternate mode is used is when it is specifically requested.
+This patch adds an additional comparison to intel_edp_compare_alt_mode
+to ensure that we only use the alternate mode if it is directly
+requested.
+
+Fixes: dc911f5bd8aac ("Allow alternate fixed mode for eDP if available.")
+Cc: David Weinehall <david.weinehall@linux.intel.com>
+Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
+Signed-off-by: Jim Bride <jim.bride@linux.intel.com>
+---
+ drivers/gpu/drm/i915/intel_dp.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
+index 09f274419eea..838cee312e8e 100644
+--- a/drivers/gpu/drm/i915/intel_dp.c
++++ b/drivers/gpu/drm/i915/intel_dp.c
+@@ -1632,7 +1632,8 @@ static bool intel_edp_compare_alt_mode(struct drm_display_mode *m1,
+ m1->vdisplay == m2->vdisplay &&
+ m1->vsync_start == m2->vsync_start &&
+ m1->vsync_end == m2->vsync_end &&
+- m1->vtotal == m2->vtotal);
++ m1->vtotal == m2->vtotal &&
++ m1->vrefresh == m2->vrefresh);
+ return bres;
+ }
+
+--
+2.15.1