drm/msm/dp: postpone irq_hpd event during connection pending state
authorKuogee Hsieh <khsieh@codeaurora.org>
Fri, 18 Dec 2020 17:53:40 +0000 (09:53 -0800)
committerRob Clark <robdclark@chromium.org>
Thu, 7 Jan 2021 17:11:02 +0000 (09:11 -0800)
commit2b5f09cadfc576817c0450e01d454f750909b103
tree67f762e91b38d0c4ff9bd2c22238e611661ddf2d
parent07fcad0d726d5da7c43f1c8e8fdb66c93a140ca5
drm/msm/dp: postpone irq_hpd event during connection pending state

irq_hpd event can only be executed at connected state. Therefore
irq_hpd event should be postponed if it happened at connection
pending state. This patch also make sure both link rate and lane
are valid before start link training.

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