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

2023-03-06 Thread Johan Hovold
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 ma

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

2023-03-06 Thread Dmitry Baryshkov
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