summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>2024-12-17 12:32:34 +0300
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>2024-12-24 12:49:57 +0300
commit63b746070ac0da7810f4b8fac511e7eb8afa0ac3 (patch)
tree5041671eb25f624049f81f8932be9dbffd489bd7
parentdc697ce89ba397e639fc84218fd4bc258ef6b64c (diff)
downloadlinux-63b746070ac0da7810f4b8fac511e7eb8afa0ac3.tar.xz
drm/i915/dp: Drop check for FEC in intel_dp_fec_compute_config
Support for FEC is already checked by intel_dp_supports_dsc() in intel_dp_dsc_compute_config() which gets called before intel_dp_fec_compute_config(). Therefore the check can be dropped from the helper intel_dp_fec_compute_config(). v2: Changed commit message for clarity. (Suraj) Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241217093244.3938132-5-ankit.k.nautiyal@intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_dp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 674297ac6315..9a039cbdfcc9 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2351,7 +2351,6 @@ static int intel_edp_dsc_compute_pipe_bpp(struct intel_dp *intel_dp,
}
static void intel_dp_fec_compute_config(struct intel_dp *intel_dp,
- const struct intel_connector *connector,
struct intel_crtc_state *crtc_state)
{
if (crtc_state->fec_enable)
@@ -2365,9 +2364,6 @@ static void intel_dp_fec_compute_config(struct intel_dp *intel_dp,
if (intel_dp_is_edp(intel_dp))
return;
- if (!intel_dp_supports_fec(intel_dp, connector, crtc_state))
- return;
-
if (intel_dp_is_uhbr(crtc_state))
return;
@@ -2389,7 +2385,7 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
int num_joined_pipes = intel_crtc_num_joined_pipes(pipe_config);
int ret;
- intel_dp_fec_compute_config(intel_dp, connector, pipe_config);
+ intel_dp_fec_compute_config(intel_dp, pipe_config);
if (!intel_dp_dsc_supports_format(connector, pipe_config->output_format))
return -EINVAL;