drm/i915/dp: do not limit rate seek when not needed
authorJani Nikula <jani.nikula@intel.com>
Thu, 6 Apr 2017 13:44:11 +0000 (16:44 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 11 Apr 2017 13:54:30 +0000 (16:54 +0300)
commitb1810a74a0513993e02ba13e60a29c5f01ea3bf0
tree7a18e13f5e8a378e5670d84345783906f3b2d59f
parent975ee5fca10b713aff92cee87e1789e5e2e6c1da
drm/i915/dp: do not limit rate seek when not needed

In link training fallback, we're trying to find a rate that we know is
in a sorted array of common link rates. We don't need to limit the array
using the max rate. For test request, the DP CTS doesn't say we should
limit the rate based on earlier fallback. This lets us get rid of
intel_dp_link_rate_index() and use intel_dp_rate_index() instead.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/33cab481a3228f31e938b5891a6285d892dcf272.1491485983.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c