drm/msm/dp: fixes wrong connection state caused by failure of link train
authorKuogee Hsieh <khsieh@codeaurora.org>
Tue, 3 Nov 2020 22:53:36 +0000 (14:53 -0800)
committerRob Clark <robdclark@chromium.org>
Tue, 10 Nov 2020 20:39:15 +0000 (12:39 -0800)
commit62671d2ef24bca1e2e1709a59a5bfb5c423cdc8e
tree868e340b6d85004e5899f7602e8efad980aeb7a5
parent19e52bcb27c2ba140699d2230d722366d7d048a1
drm/msm/dp: fixes wrong connection state caused by failure of link train

Connection state is not set correctly happen when either failure of link
train due to cable unplugged in the middle of aux channel reading or
cable plugged in while in suspended state. This patch fixes these problems.
This patch also replace ST_SUSPEND_PENDING with ST_DISPLAY_OFF.

Changes in V2:
-- Add more information to commit message.

Changes in V3:
-- change base

Changes in V4:
-- add Fixes tag

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_display.c
drivers/gpu/drm/msm/dp/dp_panel.c