]> git.baikalelectronics.ru Git - kernel.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)
commitb2d2bba53965c02b19eb66524a3714f4121903ae
treec830b1d68519bab4e3a38c3ca49ba22a96ea413d
parent614bf17a8d487f0d501e014bd8b4bcfd94494561
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