From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
linux-renesas-soc@vger.kernel.org,
Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [PATCH 2/2] drm: rcar-du: Don't set connector DPMS property
Date: Fri, 15 Sep 2017 20:23:19 +0300 [thread overview]
Message-ID: <4050000.DqEiLjPiul@avalon> (raw)
In-Reply-To: <20170815130545.2225-2-laurent.pinchart+renesas@ideasonboard.com>
Gentle review ping.
On Tuesday, 15 August 2017 16:05:45 EEST Laurent Pinchart wrote:
> Since commit 4a97a3da420b ("drm: Don't update property values for atomic
> drivers") atomic drivers must not update property values as properties
> are read from the state instead. To catch remaining users, the
> drm_object_property_set_value() function now throws a warning when
> called by atomic drivers on non-immutable properties, and we hit that
> warning when creating connectors.
>
> The easy fix is to just remove the drm_object_property_set_value() as it
> is used here to set the initial value of the connector's DPMS property
> to OFF. The DPMS property applies on top of the connector's state crtc
> pointer (initialized to NULL) that is the main connector on/off control,
> and should thus default to ON.
>
> Fixes: 4a97a3da420b ("drm: Don't update property values for atomic drivers")
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> This patch fixes a regression in drm-next and should be merged in v4.14-rc1.
>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c
> b/drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c index
> b373ad48ef5f..e96f2df0c305 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c
> @@ -79,10 +79,6 @@ int rcar_du_lvds_connector_init(struct rcar_du_device
> *rcdu,
>
> drm_connector_helper_add(connector, &connector_helper_funcs);
>
> - connector->dpms = DRM_MODE_DPMS_OFF;
> - drm_object_property_set_value(&connector->base,
> - rcdu->ddev->mode_config.dpms_property, DRM_MODE_DPMS_OFF);
> -
> ret = drm_mode_connector_attach_encoder(connector, encoder);
> if (ret < 0)
> return ret;
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2017-09-15 17:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-15 13:05 [PATCH 1/2] drm/fsl-dcu: Don't set connector DPMS property Laurent Pinchart
2017-08-15 13:05 ` [PATCH 2/2] drm: rcar-du: " Laurent Pinchart
2017-09-15 17:23 ` Laurent Pinchart [this message]
2017-09-20 18:15 ` 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=4050000.DqEiLjPiul@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-renesas-soc@vger.kernel.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