Re: [PATCH] drm/sun4i: dsi: Avoid hotplug race with DRM driver bind

2020-02-19 Thread Maxime Ripard
On Mon, Feb 17, 2020 at 12:09:06AM -0600, Samuel Holland wrote: > We need to make sure that the DRM driver is fully registered before > allowing the panel to be attached. Otherwise, we may trigger a hotplug > event before sun4i_framebuffer_init() sets up drm->mode_config.funcs, > causing a NULL poi

[PATCH] drm/sun4i: dsi: Avoid hotplug race with DRM driver bind

2020-02-17 Thread Samuel Holland
We need to make sure that the DRM driver is fully registered before allowing the panel to be attached. Otherwise, we may trigger a hotplug event before sun4i_framebuffer_init() sets up drm->mode_config.funcs, causing a NULL pointer dereference. Fixes: 1a2703bd7356 ("drm/sun4i: dsi: Allow binding t