]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/edp: fix eDP MSO pipe sanity checks for ADL-P
authorJani Nikula <jani.nikula@intel.com>
Thu, 12 Aug 2021 13:23:54 +0000 (16:23 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 18 Aug 2021 11:23:54 +0000 (07:23 -0400)
commitbaa2152dae0496e230545051395a83ac434744bd
treedbe65181a56bad402733f8c84d6155a9590f7cf8
parentb8441b288d6031eac21390891ba36487b2cb398b
drm/i915/edp: fix eDP MSO pipe sanity checks for ADL-P

ADL-P supports stream splitter on pipe B in addition to pipe A. Update
the sanity check in intel_ddi_mso_get_config() to reflect this, and
remove the check in intel_ddi_mso_configure() as redundant with
encoder->pipe_mask. Abstract the splitter pipe mask to a single point of
truth while at it to avoid similar mistakes in the future.

Fixes: 7bc188cc2c8c ("drm/i915/adl_p: enable MSO on pipe B")
Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Swati Sharma <swati2.sharma@intel.com>
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
Tested-by: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210812132354.10885-1-jani.nikula@intel.com
(cherry picked from commit f6864b27d6d324771d979694de7ca455afbad32a)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c