]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/dp: Do not busy-loop during link training
authorThierry Reding <treding@nvidia.com>
Mon, 21 Oct 2019 14:34:30 +0000 (16:34 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 23 Oct 2019 16:18:47 +0000 (18:18 +0200)
commitfc6b42045e51a8e2793751e03daa39dc99c25983
treec830b1d68519bab4e3a38c3ca49ba22a96ea413d
parent7624629d06b01d115e9a83c372f26ffd181c6aa5
drm/dp: Do not busy-loop during link training

Use microsecond sleeps for the clock recovery and channel equalization
delays during link training. The duration of these delays can be from
100 us up to 16 ms. It is rude to busy-loop for that amount of time.

While at it, also convert to standard coding style by putting the
opening braces in a function definition on a new line. Also switch to
using an unsigned int for the AUX read interval to match the data type
of the parameters to usleep_range().

v2: use correct multiplier for training delays (Philipp Zabel)
v3: clarify data type change in commit message

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021143437.1477719-7-thierry.reding@gmail.com
drivers/gpu/drm/drm_dp_helper.c