]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: centralize max source rate conditions more
authorJani Nikula <jani.nikula@intel.com>
Mon, 9 Oct 2017 09:29:58 +0000 (12:29 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 11 Oct 2017 19:04:33 +0000 (22:04 +0300)
commit41c8221fd6794582ff57ab1d3fa6d9ebe56f98a9
tree58808d57648901839bfbc2753787456021833ed9
parente6356244c38e21b898a5fb929887339015d93cb8
drm/i915/dp: centralize max source rate conditions more

Turn intel_dp_source_supports_hbr2() into a simple helper to query the
pre-filled source rates array, and move the conditions about which
platforms support which rates to the single point of truth in
intel_dp_set_source_rates().

This also reduces the code paths you have to think about in the source
rates initialization in intel_dp_set_source_rates(), making it easier to
grasp.

Cc: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009092959.29021-2-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c