kernel_samsung_a53x/drivers/gpu/drm/msm/dp
Kuogee Hsieh 7c37618eab drm/msm/dp: do not reinitialize phy unless retry during link training
[ Upstream commit 0c1a2e69bcb506f48ebf94bd199bab0b93f66da2 ]

DP PHY re-initialization done using dp_ctrl_reinitialize_mainlink() will
cause PLL unlocked initially and then PLL gets locked at the end of
initialization. PLL_UNLOCKED interrupt will fire during this time if the
interrupt mask is enabled.

However currently DP driver link training implementation incorrectly
re-initializes PHY unconditionally during link training as the PHY was
already configured in dp_ctrl_enable_mainlink_clocks().

Fix this by re-initializing the PHY only if the previous link training
failed.

[drm:dp_aux_isr] *ERROR* Unexpected DP AUX IRQ 0x01000000 when not busy

Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support")
Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/30
Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Tested-by: Abhinav Kumar <quic_abhinavk@quicinc.com> # sc7280
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/551847/
Link: https://lore.kernel.org/r/1691533190-19335-1-git-send-email-quic_khsieh@quicinc.com
[quic_abhinavk@quicinc.com: added line break in commit text]
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-08 11:25:44 +01:00
..
dp_audio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_audio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_aux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_aux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_catalog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_catalog.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_ctrl.c drm/msm/dp: do not reinitialize phy unless retry during link training 2024-11-08 11:25:44 +01:00
dp_ctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_display.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_display.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_drm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_drm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_hpd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_hpd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_link.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_link.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_panel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_panel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_parser.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_parser.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_power.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dp_reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00