Skip to content

Commit a3cd4f4

Browse files
committed
drm/i915/sdvo: Grab mode_config.mutex during LVDS init to avoid WARNs
drm_mode_probed_add() is unhappy about being called w/o mode_config.mutex. Grab it during LVDS fixed mode setup to silence the WARNs. Cc: [email protected] Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/7301 Fixes: aa2b880 ("drm/i915/sdvo: Fix multi function encoder stuff") Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Jani Nikula <[email protected]>
1 parent 64b7b55 commit a3cd4f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/i915/display/intel_sdvo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,8 +2908,12 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)
29082908
intel_panel_add_vbt_sdvo_fixed_mode(intel_connector);
29092909

29102910
if (!intel_panel_preferred_fixed_mode(intel_connector)) {
2911+
mutex_lock(&i915->drm.mode_config.mutex);
2912+
29112913
intel_ddc_get_modes(connector, &intel_sdvo->ddc);
29122914
intel_panel_add_edid_fixed_modes(intel_connector, false);
2915+
2916+
mutex_unlock(&i915->drm.mode_config.mutex);
29132917
}
29142918

29152919
intel_panel_init(intel_connector);

0 commit comments

Comments
 (0)