From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
DRI Development <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 1/7] drm/ch7006: Stop using drm_crtc_force_disable
Date: Mon, 10 Dec 2018 18:20:41 +0200 [thread overview]
Message-ID: <20181210162041.GG9144@intel.com> (raw)
In-Reply-To: <20181210100359.22507-2-daniel.vetter@ffwll.ch>
On Mon, Dec 10, 2018 at 11:03:53AM +0100, Daniel Vetter wrote:
> 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);
That guy seems to return a bool.
> }
>
> return 0;
> --
> 2.20.0.rc1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-12-10 16:20 UTC|newest]
Thread overview: 27+ 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 ` [PATCH 1/7] drm/ch7006: Stop using drm_crtc_force_disable Daniel Vetter
2018-12-10 16:20 ` Ville Syrjälä [this message]
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 10:03 ` [PATCH 6/7] drm/xen: " Daniel Vetter
2018-12-10 10:12 ` Oleksandr Andrushchenko
2018-12-12 10:56 ` Daniel Vetter
2018-12-10 10:11 ` [PATCH 7/7] drm: Split out drm_probe_helper.h Daniel Vetter
[not found] ` <20181210101133.5364-1-daniel.vetter-/w4YWyX8dFk@public.gmane.org>
2018-12-10 10:24 ` Thierry Reding
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
[not found] ` <CA+M3ks7ODkgZe_otsens1H4PoKOdnfHVxUgi84NPyri6Xhh1dg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-12-12 10:53 ` Daniel Vetter
2018-12-10 12:30 ` Neil Armstrong
2018-12-29 22:56 ` Liviu Dudau
2019-01-07 9:45 ` Daniel Vetter
[not found] ` <20190107094522.GU21184-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2019-01-07 10:08 ` Liviu Dudau
[not found] ` <20190107100841.GH20342-hOhETlTuV5niMG9XS5x8Mg@public.gmane.org>
2019-01-07 10:24 ` Daniel Vetter
2018-12-10 21:33 ` [PATCH 0/7] legacy helper cleanup Alex Deucher
-- strict thread matches above, loose matches on Subject: below --
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=20181210162041.GG9144@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).