• Imre Deak's avatar
    drm/i915/dp: Sanitize DPCD revision check in intel_dp_get_dsc_sink_cap() · 90780a63
    Imre Deak authored
    Check only the eDP or the DP specific DPCD revision depending on the
    sink type. Pass the corresponding revision to the function, which allows
    getting the DSC caps of a branch device (in an MST topology, which has
    its own DPCD and so DPCD revision).
    
    While at it use DP_DPCD_REV_14 instead of open coding it and for clarity
    add a separate function to read out the DSC capability on eDP.
    
    v2:
    - Use DP_DPCD_REV_14 instead of open coding it. (Stan)
    - Check EDP_DCPD_REV/DPCD_REV in a clearer way. (Ville)
    v3:
    - Fix the read-out for eDP in intel_dp_detect().
    
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> (v1)
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v2)
    Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20231011171606.2540078-1-imre.deak@intel.com
    90780a63
intel_dp.c 181 KB