<div dir="ltr">Seems it might be best just to have you do this, Daniel.  Thanks for the review :)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 28, 2023 at 11:53 AM Brandon Ross Pollack <<a href="mailto:brpol@chromium.org">brpol@chromium.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Apr 27, 2023 at 7:02 PM Daniel Vetter <<a href="mailto:daniel@ffwll.ch" target="_blank">daniel@ffwll.ch</a>> wrote:<br>
><br>
> On Tue, Apr 25, 2023 at 08:02:40AM +0000, Brandon Pollack wrote:<br>
> > added documentation to drm_dev_unregister clarifying that devres managed<br>
> > devices allocated with devm_drm_dev_alloc do not require calls to<br>
> > drm_dev_put.<br>
> ><br>
> > Signed-off-by: Brandon Pollack <<a href="mailto:brpol@chromium.org" target="_blank">brpol@chromium.org</a>><br>
> ><br>
> > ---<br>
> ><br>
> > This is my first patch to any tree.  I've tried my best to read as many<br>
> > kernel docs etc as possible (wip). This took me a moment to realize so I<br>
> > figured it was as good a candidate as any for a first patch (at the very<br>
> > least to make sure I have the whole patching process figured out).  I<br>
> > hope to make more janitorial changes as I continue to learn leading up<br>
> > to the work I hope to do.<br>
> ><br>
> > We're hoping to add multiple display hotplug output support to VKMS for<br>
> > testing purposes.  Some work has been done already, but we'll be taking<br>
> > over moving forward.  Our intent is to remain involved and assist in<br>
> > maintaining these changes.<br>
> ><br>
> > Looking forward to your comments/advice (now and henceforth!)<br>
><br>
> Looking good!<br>
><br>
> Reviewed-by: Daniel Vetter <<a href="mailto:daniel.vetter@ffwll.ch" target="_blank">daniel.vetter@ffwll.ch</a>><br>
><br>
> Since you're @<a href="http://chromium.org" rel="noreferrer" target="_blank">chromium.org</a> I'm assuming that one of the cros committers<br>
> will push this to drm-misc-next. If not please holler.<br>
> -Daniel<br>
<br>
I'm actually working in relative isolation on this (I'm located in<br>
Tokyo) so please go ahead.  I'll get in touch with some of those folks<br>
soon :)<br>
<br>
><br>
> > ---<br>
> >  drivers/gpu/drm/drm_drv.c | 4 +++-<br>
> >  1 file changed, 3 insertions(+), 1 deletion(-)<br>
> ><br>
> > diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c<br>
> > index cee0cc522ed9..12687dd9e1ac 100644<br>
> > --- a/drivers/gpu/drm/drm_drv.c<br>
> > +++ b/drivers/gpu/drm/drm_drv.c<br>
> > @@ -969,7 +969,9 @@ EXPORT_SYMBOL(drm_dev_register);<br>
> >   *<br>
> >   * Unregister the DRM device from the system. This does the reverse of<br>
> >   * drm_dev_register() but does not deallocate the device. The caller must call<br>
> > - * drm_dev_put() to drop their final reference.<br>
> > + * drm_dev_put() to drop their final reference, unless it is managed with devres<br>
> > + * (as devices allocated with devm_drm_dev_alloc() are), in which case there is<br>
> > + * already an unwind action registered.<br>
> >   *<br>
> >   * A special form of unregistering for hotpluggable devices is drm_dev_unplug(),<br>
> >   * which can be called while there are still open users of @dev.<br>
> > --<br>
> > 2.40.0.634.g4ca3ef3211-goog<br>
> ><br>
><br>
> --<br>
> Daniel Vetter<br>
> Software Engineer, Intel Corporation<br>
> <a href="http://blog.ffwll.ch" rel="noreferrer" target="_blank">http://blog.ffwll.ch</a><br>
</blockquote></div>