drm/i915/dp: use fsleep instead of usleep_range for LT
authorArun R Murthy <arun.r.murthy@intel.com>
Wed, 25 Sep 2024 03:44:30 +0000 (09:14 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 18 Nov 2024 08:02:44 +0000 (13:32 +0530)
commitaf02ee4fb63342c873b747d724cd5ada13c2bde1
treeaff296f39714f8e03f8384c07086f3143b2ba5da
parenta594f284ddce5b152ffe4d938708ed714f796887
drm/i915/dp: use fsleep instead of usleep_range for LT

Sleeping for < 10us use udelay, for 10us to 20ms use usleep_range() and
for > 10ms use msleep. flseep() will call the particular API based on
the above condition. (Documentation/timers/timers-howto.rst)
Aux RD Interval value depends on the value read from the dpcd register
which is updated from the sink device, hence use flseep.

Co-developed-by: Srikanth V NagaVenkata <nagavenkata.srikanth.v@intel.com>
Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240925034432.1777029-2-arun.r.murthy@intel.com
drivers/gpu/drm/i915/display/intel_dp_link_training.c