Skip to content

Commit 12caf46

Browse files
vsyrjalatursulin
authored andcommitted
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]> (cherry picked from commit a3cd4f4) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent d372ec9 commit 12caf46

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
@@ -2900,8 +2900,12 @@ intel_sdvo_lvds_init(struct intel_sdvo *intel_sdvo, int device)
29002900
intel_panel_add_vbt_sdvo_fixed_mode(intel_connector);
29012901

29022902
if (!intel_panel_preferred_fixed_mode(intel_connector)) {
2903+
mutex_lock(&i915->drm.mode_config.mutex);
2904+
29032905
intel_ddc_get_modes(connector, &intel_sdvo->ddc);
29042906
intel_panel_add_edid_fixed_modes(intel_connector, false);
2907+
2908+
mutex_unlock(&i915->drm.mode_config.mutex);
29052909
}
29062910

29072911
intel_panel_init(intel_connector);

0 commit comments

Comments
 (0)