mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
After a connector is added to the drm_mode_config::connector_list, it's
visible to any in-kernel users looking up connectors via the above list.
Make sure that the connector is properly initialized before such
look-ups, by initializing the connector with
drm_connector_dynamic_init() - which doesn't add the connector to the
list - and registering it with drm_connector_dynamic_register() - which
adds the connector to the list - after the initialization is complete.
v2: Fix s/drm_connector_dynamic_register()/drm_connector_dynamic_init()
typo in the commit log.
Cc: Harry Wentland <[email protected]>
Cc: Leo Li <[email protected]>
Cc: Wayne Lin <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Lyude Paul <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Acked-by: Wayne Lin <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]