All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel.vetter@ffwll.ch>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
	DRI Development <dri-devel@lists.freedesktop.org>,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: [PATCH 1/7] drm/ch7006: Stop using drm_crtc_force_disable
Date: Mon, 10 Dec 2018 11:03:53 +0100	[thread overview]
Message-ID: <20181210100359.22507-2-daniel.vetter@ffwll.ch> (raw)
In-Reply-To: <20181210100359.22507-1-daniel.vetter@ffwll.ch>

The correct way for legacy drivers to update properties that need to
do a full modeset, is to do a full modeset.

Note that we don't need to call the drm_mode_config_internal helper
because we're not changing any of the refcounted paramters.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i2c/ch7006_drv.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i2c/ch7006_drv.c b/drivers/gpu/drm/i2c/ch7006_drv.c
index 544a8a2d3562..719c79d3fac9 100644
--- a/drivers/gpu/drm/i2c/ch7006_drv.c
+++ b/drivers/gpu/drm/i2c/ch7006_drv.c
@@ -359,10 +359,10 @@ static int ch7006_encoder_set_property(struct drm_encoder *encoder,
 	if (modes_changed) {
 		drm_helper_probe_single_connector_modes(connector, 0, 0);
 
-		/* Disable the crtc to ensure a full modeset is
-		 * performed whenever it's turned on again. */
 		if (crtc)
-			drm_crtc_force_disable(crtc);
+			return drm_crtc_helper_set_mode(crtc, &crtc->mode,
+							crtc->x, crtc->y,
+							crtc->primary->fb);
 	}
 
 	return 0;
-- 
2.20.0.rc1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-12-10 10:03 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-10 10:03 [PATCH 0/7] legacy helper cleanup Daniel Vetter
2018-12-10 10:03 ` Daniel Vetter [this message]
2018-12-10 16:20   ` [PATCH 1/7] drm/ch7006: Stop using drm_crtc_force_disable Ville Syrjälä
2018-12-12 10:54     ` [Intel-gfx] " Daniel Vetter
2018-12-10 10:03 ` [PATCH 2/7] drm/nouveau: " Daniel Vetter
2018-12-10 10:03 ` [PATCH 3/7] drm: Unexport drm_crtc_force_disable Daniel Vetter
     [not found] ` <20181210100359.22507-1-daniel.vetter-/w4YWyX8dFk@public.gmane.org>
2018-12-10 10:03   ` [PATCH 4/7] drm: Move the legacy kms disable_all helper to crtc helpers Daniel Vetter
2018-12-10 15:58     ` Alex Deucher
2018-12-11 15:53       ` Sean Paul
2018-12-11 15:55         ` Alex Deucher
2018-12-10 10:03 ` [PATCH 5/7] drm/qxl: Don't set the dpms hook Daniel Vetter
2018-12-10 13:08   ` Gerd Hoffmann
2018-12-10 13:08   ` Gerd Hoffmann
2018-12-10 10:03 ` [PATCH 6/7] drm/xen: " Daniel Vetter
2018-12-10 10:12   ` Oleksandr Andrushchenko
2018-12-10 10:12   ` Oleksandr Andrushchenko
2018-12-12 10:56     ` Daniel Vetter
2018-12-12 10:56     ` Daniel Vetter
2018-12-10 10:03 ` Daniel Vetter
2018-12-10 10:11 ` [PATCH 7/7] drm: Split out drm_probe_helper.h Daniel Vetter
2018-12-10 10:11 ` Daniel Vetter
2018-12-10 10:11   ` Daniel Vetter
2018-12-10 10:24   ` Thierry Reding
2018-12-10 10:24   ` Thierry Reding
     [not found]   ` <20181210101133.5364-1-daniel.vetter-/w4YWyX8dFk@public.gmane.org>
2018-12-10 10:24     ` Thierry Reding
2018-12-10 10:24       ` Thierry Reding
2018-12-10 10:24       ` Thierry Reding
2018-12-10 10:24       ` Thierry Reding
2018-12-10 11:10       ` Benjamin Gaignard
2018-12-10 11:10       ` Benjamin Gaignard
2018-12-10 11:10         ` Benjamin Gaignard
2018-12-10 11:10         ` Benjamin Gaignard
2018-12-10 11:10         ` Benjamin Gaignard
     [not found]         ` <CA+M3ks5MgpCqMDp6DrtyB_Cj_YMryysTmbAaUjzN7sWde5dX6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-12-10 13:40           ` Benjamin Gaignard
2018-12-10 13:40             ` Benjamin Gaignard
2018-12-10 13:40             ` Benjamin Gaignard
2018-12-10 13:40             ` Benjamin Gaignard
     [not found]             ` <CA+M3ks7ODkgZe_otsens1H4PoKOdnfHVxUgi84NPyri6Xhh1dg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-12-12 10:53               ` Daniel Vetter
2018-12-12 10:53                 ` Daniel Vetter
2018-12-12 10:53                 ` Daniel Vetter
2018-12-12 10:53                 ` Daniel Vetter
2018-12-12 10:53             ` Daniel Vetter
2018-12-12 10:53             ` Daniel Vetter
2018-12-10 13:40         ` Benjamin Gaignard
2018-12-10 12:30   ` Neil Armstrong
2018-12-10 12:30     ` Neil Armstrong
2018-12-10 12:30     ` Neil Armstrong
2018-12-10 12:30     ` Neil Armstrong
2018-12-10 12:30   ` Neil Armstrong
2018-12-10 12:30   ` Neil Armstrong
2018-12-29 22:56   ` Liviu Dudau
2018-12-29 22:56   ` Liviu Dudau
2018-12-29 22:56     ` Liviu Dudau
2019-01-07  9:45     ` Daniel Vetter
2019-01-07  9:45     ` Daniel Vetter
2019-01-07  9:45       ` Daniel Vetter
     [not found]       ` <20190107094522.GU21184-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2019-01-07 10:08         ` Liviu Dudau
2019-01-07 10:08           ` Liviu Dudau
2019-01-07 10:24           ` Daniel Vetter
2019-01-07 10:24           ` Daniel Vetter
     [not found]           ` <20190107100841.GH20342-hOhETlTuV5niMG9XS5x8Mg@public.gmane.org>
2019-01-07 10:24             ` Daniel Vetter
2019-01-07 10:24               ` Daniel Vetter
2019-01-07 10:08       ` Liviu Dudau
2018-12-10 11:39 ` ✗ Fi.CI.CHECKPATCH: warning for legacy helper cleanup Patchwork
2018-12-10 12:09 ` ✓ Fi.CI.BAT: success " Patchwork
2018-12-10 14:57 ` ✓ Fi.CI.IGT: " Patchwork
2018-12-10 21:33 ` [PATCH 0/7] " Alex Deucher
2018-12-17 19:42 [PATCH 1/7] drm/ch7006: Stop using drm_crtc_force_disable Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181210100359.22507-2-daniel.vetter@ffwll.ch \
    --to=daniel.vetter@ffwll.ch \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.