]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dp: Restore aux retry tuning logic
authorStephen Boyd <swboyd@chromium.org>
Fri, 26 Feb 2021 21:08:21 +0000 (13:08 -0800)
committerRob Clark <robdclark@chromium.org>
Wed, 17 Mar 2021 16:17:24 +0000 (09:17 -0700)
commit413b7a320e238d1a79dfca24c35ce4e1a0e7a8d6
tree9f468efeb69537dc448259f41b890db1eabda3b1
parent9daaf31307856defb1070685418ce5a484ecda3a
drm/msm/dp: Restore aux retry tuning logic

In commit 9fc418430c65 ("drm/msm/dp: unplug interrupt missed after
irq_hpd handler") we dropped a reset of the aux phy during aux transfers
because resetting the phy during active communication caused us to miss
an hpd irq in some cases. Unfortunately, we also dropped the part of the
code that changes the aux phy tuning when an aux transfer fails due to a
timeout. That part of the code was calling into the phy driver to
reconfigure the aux TX swing controls, working around poor channel
quality. Let's restore this phy setting code so that aux channel
communication is more reliable.

Cc: Kuogee Hsieh <khsieh@codeaurora.org>
Fixes: 9fc418430c65 ("drm/msm/dp: unplug interrupt missed after irq_hpd handler")
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_aux.c