drm/i915: Move intel_ddi_fdi_post_disable() to fdi code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Oct 2021 07:16:24 +0000 (10:16 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 19 Oct 2021 06:40:13 +0000 (09:40 +0300)
commitd39ef5d5c076377d41c65b69f8452eada2db724d
tree57c1c5d129dfa490bbc8c0a96ff25572782e8e3f
parent976c68f46d7cba02ccc80fbd67a4e9731e23e8a7
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>
drivers/gpu/drm/i915/display/intel_crt.c
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_ddi.h
drivers/gpu/drm/i915/display/intel_fdi.c
drivers/gpu/drm/i915/display/intel_fdi.h