]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: move link_bw and rate_select debugging where used
authorJani Nikula <jani.nikula@intel.com>
Thu, 26 Apr 2018 08:25:25 +0000 (11:25 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 26 Apr 2018 15:21:02 +0000 (18:21 +0300)
commit25862a22d80395b1f7a0b913c405a4dcc62cb479
tree5fcdc56d189a2cb438a0aac31af3dbfdd17290d0
parent9e57ce6fa7a028afd24b77322096e14ccf7fd02c
drm/i915/dp: move link_bw and rate_select debugging where used

We call intel_dp_compute_rate() in intel_dp_compute_config() only to be
able to debug log the link_bw and rate_select parameters; we don't use
the parameters here for anything else. We call intel_dp_compute_rate()
again during link training where we actually need and use the
parameters.

Move the debug logging of link_bw and rate_select to
intel_dp_link_training_clock_recovery(), and clean up the extra
intel_dp_compute_rate() call and extra clutter from the already
overcrowded intel_dp_compute_config().

v2: Rewrote commit message (Rodrigo, Manasi)

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/c5cf6a179e2d244eceb6bb80a792765d9efbee4f.1524730974.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_dp_link_training.c