mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
drm/i915/dp: Return early if DSC not supported
Check for DSC support before computing link config with DSC. For DP MST we are already doing the same. Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241217093244.3938132-3-ankit.k.nautiyal@intel.com
This commit is contained in:
parent
230a14f4c5
commit
adaa2cb663
|
|
@ -2375,9 +2375,6 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
|
|||
intel_dp_supports_fec(intel_dp, connector, pipe_config) &&
|
||||
!intel_dp_is_uhbr(pipe_config));
|
||||
|
||||
if (!intel_dp_supports_dsc(intel_dp, connector, pipe_config))
|
||||
return -EINVAL;
|
||||
|
||||
if (!intel_dp_dsc_supports_format(connector, pipe_config->output_format))
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -2652,6 +2649,9 @@ intel_dp_compute_link_config(struct intel_encoder *encoder,
|
|||
str_yes_no(ret), str_yes_no(joiner_needs_dsc),
|
||||
str_yes_no(intel_dp->force_dsc_en));
|
||||
|
||||
if (!intel_dp_supports_dsc(intel_dp, connector, pipe_config))
|
||||
return -EINVAL;
|
||||
|
||||
if (!intel_dp_compute_config_limits(intel_dp, pipe_config,
|
||||
respect_downstream_limits,
|
||||
true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user