drm/i915/display_debugfs: Allow force joiner only if supported
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 26 Sep 2024 13:43:20 +0000 (19:13 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 30 Sep 2024 14:06:21 +0000 (19:36 +0530)
commitcdff99ff24b16ee37b0527fc64c0e7df4989a1ba
treec11f191dec5407e8f8123e810b600b7f01cfd3a7
parent89edc852fbe9893f7a61b7c001b0fb070623273a
drm/i915/display_debugfs: Allow force joiner only if supported

Currently we support joiner only for DP encoder.
Do not create the debugfs for joiner if DP does not support the joiner.
This will also help avoiding cases where config has eDP MSO, with which
we do not support joiner.

v2: Check for intel_dp_has_joiner and avoid creating debugfs if not
supported. (Ville)
v3: Remove HAS_BIGJOINER check. (Ville)
v4: Reverse checks for connector type and intel_dp_has_joiner(). (Ville)
v5: Drop the local variable intel_dp and use intel_attached_dp() directly.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240926134322.3728021-3-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c