From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
dri-devel@lists.freedesktop.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2] drm: shmobile: Perform initialization/cleanup at probe/remove time
Date: Tue, 13 Dec 2016 19:19:15 +0200 [thread overview]
Message-ID: <2835101.vUU6uQBUMJ@avalon> (raw)
In-Reply-To: <20161213171134.xg7ihewey7aa7gej@phenom.ffwll.local>
Hi Daniel,
On Tuesday 13 Dec 2016 18:11:34 Daniel Vetter wrote:
> On Tue, Dec 13, 2016 at 02:59:48PM +0200, Laurent Pinchart wrote:
> > From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >
> > The drm driver .load() operation is prone to race conditions as it
> > initializes the driver after registering the device nodes. Its usage is
> > deprecated, inline it in the probe function and call drm_dev_alloc() and
> > drm_dev_register() explicitly.
> >
> > For consistency inline the .unload() handler in the remove function as
> > well.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > ---
> > Changes since v1:
> >
> > - Removed manual the drm_connector_register() that caused sysfs-related
> >
> > warnings
>
> Hm, what did go boom there? We should catch multiple calls to
> drm_connector_register ...
Trying to register the connector before the DRM device is registered makes
sysfs unhappy due to the lack of a parent.
> > drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 7 +-
> > drivers/gpu/drm/shmobile/shmob_drm_drv.c | 206 +++++++++++-------------
> > 2 files changed, 104 insertions(+), 109 deletions(-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2016-12-13 17:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-12 21:08 [PATCH] drm: shmobile: Perform initialization/cleanup at probe/remove time Laurent Pinchart
2016-12-13 8:43 ` Daniel Vetter
2016-12-13 12:59 ` [PATCH v2] " Laurent Pinchart
2016-12-13 17:11 ` Daniel Vetter
2016-12-13 17:19 ` Laurent Pinchart [this message]
2016-12-13 21:01 ` Daniel Vetter
2016-12-13 21:28 ` Laurent Pinchart
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=2835101.vUU6uQBUMJ@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