Re: [PATCH 09/10] drm/msm: use drmm_mode_config_init()

From: Johan Hovold
Date: Mon Mar 06 2023 - 08:31:13 EST


On Mon, Mar 06, 2023 at 02:38:37PM +0200, Dmitry Baryshkov wrote:
> On 06/03/2023 12:07, Johan Hovold wrote:
> > Switch to using drmm_mode_config_init() so that the mode config is
> > released when the last reference to the DRM device is dropped rather
> > than unconditionally at unbind() (which may be too soon).
>
> This also means that drm_bridge_detach() might be called at some point
> after unbind(), which might be too late.

Indeed.

Please disregard this patch. It's not needed to fix the bind error paths
anyway.

Johan