diff options
author | 2021-10-15 10:16:24 +0300 | |
---|---|---|
committer | 2021-10-19 09:40:13 +0300 | |
commit | d39ef5d5c076377d41c65b69f8452eada2db724d (patch) | |
tree | 57c1c5d129dfa490bbc8c0a96ff25572782e8e3f /drivers/gpu/drm/i915/display/intel_crt.c | |
parent | drm/i915: Introduce ilk_pch_disable() and ilk_pch_post_disable() (diff) | |
download | wireguard-linux-d39ef5d5c076377d41c65b69f8452eada2db724d.tar.xz wireguard-linux-d39ef5d5c076377d41c65b69f8452eada2db724d.zip |
drm/i915: Move intel_ddi_fdi_post_disable() to fdi code
Reanme intel_ddi_fdi_post_disable() to hsw_fdi_disable() and
relocate it next to all the other code dealing with FDI_RX.
intel_ddi.c has now been cleansed of FDI_RX.
In order to avoid exposing intel_disable_ddi_buf() outside
intel_ddi.c we can just open code the DDI_BUF_CTL write. The
enable side already has all that stuff open coded so
this actually is more symmetric. But we do need to remeber
to bring the intel_wait_ddi_buf_idle() call over from
inside intel_disable_ddi_buf().
Cc: Dave Airlie <airlied@redhat.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211015071625.593-9-ville.syrjala@linux.intel.com
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_crt.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_crt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_crt.c b/drivers/gpu/drm/i915/display/intel_crt.c index fe807c8e793d..db27ae2a8406 100644 --- a/drivers/gpu/drm/i915/display/intel_crt.c +++ b/drivers/gpu/drm/i915/display/intel_crt.c @@ -264,7 +264,7 @@ static void hsw_post_disable_crt(struct intel_atomic_state *state, lpt_disable_pch_transcoder(dev_priv); lpt_disable_iclkip(dev_priv); - intel_ddi_fdi_post_disable(state, encoder, old_crtc_state, old_conn_state); + hsw_fdi_disable(encoder); drm_WARN_ON(&dev_priv->drm, !old_crtc_state->has_pch_encoder); |