From: Kieran Bingham <kieran.bingham@ideasonboard.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
dri-devel@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 2/2] drm: rcar-du: Shutdown the display on remove
Date: Mon, 21 Jun 2021 21:22:34 +0100 [thread overview]
Message-ID: <2532ebed-040c-00be-cd5f-85cb775bc102@ideasonboard.com> (raw)
In-Reply-To: <20210323005616.20110-2-laurent.pinchart+renesas@ideasonboard.com>
Hi Laurent,
On 23/03/2021 00:56, Laurent Pinchart wrote:
> When the device is unbound from the driver (the DU being a platform
> device, this occurs either when removing the DU module, or when
> unbinding the device manually through sysfs), the display may be active.
> Make sure it gets shut down.
I bet this may be particularly true if there's a console on it.
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
> index 2a06ec1cbefb..9f1a3aad4dd7 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
> @@ -553,6 +553,7 @@ static int rcar_du_remove(struct platform_device *pdev)
> struct drm_device *ddev = &rcdu->ddev;
>
> drm_dev_unregister(ddev);
> + drm_atomic_helper_shutdown(ddev);
>
> drm_kms_helper_poll_fini(ddev);
There's a real mix of other drivers either calling
drm_kms_helper_poll_fini() before drm_atomic_helper_shutdown() or after,
so I'll assume that the sequencing here isn't terribly important (I hope).
So,
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
next prev parent reply other threads:[~2021-06-21 20:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-23 0:56 [PATCH 1/2] drm: rcar-du: Don't put reference to drm_device in rcar_du_remove() Laurent Pinchart
2021-03-23 0:56 ` [PATCH 2/2] drm: rcar-du: Shutdown the display on remove Laurent Pinchart
2021-06-21 20:22 ` Kieran Bingham [this message]
2021-06-21 20:14 ` [PATCH 1/2] drm: rcar-du: Don't put reference to drm_device in rcar_du_remove() Kieran Bingham
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=2532ebed-040c-00be-cd5f-85cb775bc102@ideasonboard.com \
--to=kieran.bingham@ideasonboard.com \
--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;
as well as URLs for NNTP newsgroup(s).