• Maarten Lankhorst's avatar
    drm/i915: Convert intel_tv connector properties to atomic, v5. · 0e891b3f
    Maarten Lankhorst authored
    intel_tv has properties that are handled in the atomic core, but
    needs a modeset to update the properties inside the connector.
    
    The detect(), get_mode() and mode_valid() probe callbacks also
    depend on the connector state, which made this a good connector
    to convert first. It helped find all the issues when converting
    connectors to atomic.
    
    Because of these requirements, connector atomic_check() was added
    and connection_mutex is held during probing. The diffstat looks
    more favorable now. :)
    
    Changes since v1:
    - Add intel_encoder->swap_state to allow updating connector state.
    - Add intel_tv->format for detect_mode and mode_valid, updated on atomic commit.
    Changes since v2:
    - Fix typo in tv_choose_preferred modes function name.
    - Assignment of tv properties is done in core, so intel_tv only needs
      a atomic_check function. Thanks Ville!
    Changes since v3:
    - connection_mutex is now held in mode_valid() and get_modes(),
      this removes the need for caching parts of the connector_state.
    Changes since v4:
    - Use the new atomic connector check function.
    Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Link: http://patchwork.freedesktop.org/patch/msgid/1491815239-10685-3-git-send-email-maarten.lankhorst@linux.intel.comReviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    0e891b3f
intel_tv.c 45.1 KB