]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitfc603ca7f81d729bbec7ced294f25a93113c49f7
tree58808d57648901839bfbc2753787456021833ed9
parent3c7b6b3c4f2a4882d9d82365cc122cc8d29f4811
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