Commit 048a57fc authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Use standard form -EDEADLK check

Unify how we check for -EDEADLK vs. other errors from
crtc vs. encoder compute_config() calls.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210930104133.30854-1-ville.syrjala@linux.intel.comReviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 0f26c8e2
......@@ -7537,11 +7537,10 @@ intel_modeset_pipe_config(struct intel_atomic_state *state,
ret = encoder->compute_config(encoder, pipe_config,
connector_state);
if (ret == -EDEADLK)
return ret;
if (ret < 0) {
if (ret != -EDEADLK)
drm_dbg_kms(&i915->drm,
"Encoder config failure: %d\n",
ret);
drm_dbg_kms(&i915->drm, "Encoder config failure: %d\n", ret);
return ret;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment