]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dg2: Update modeset sequences
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 23 Jul 2021 17:42:35 +0000 (10:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 29 Jul 2021 16:07:54 +0000 (09:07 -0700)
commit54690b417e5c507d0a701bf112b1d80458e94b3b
treedea2bfc28c566668d51840db4fb0df23f986627d
parent7d1a1190c3254b32e33adbeed7e4b4dc802760a5
drm/i915/dg2: Update modeset sequences

DG2 has some changes to the expected modesetting sequences when compared
to gen12.  Adjust our driver logic accordingly.  Although the DP
sequence is pretty similar to TGL's, there are some steps that change,
so let's split the handling for that out into a separate function.

v2:
 - Switch wait_for_us() -> _wait_for() so that we can parameterize the
   timeout rather than duplicating the macro call.  (Jani)

Bspec: 54128
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723174239.1551352-27-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c