drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read failed
authorKuogee Hsieh <quic_khsieh@quicinc.com>
Wed, 8 Dec 2021 17:41:02 +0000 (09:41 -0800)
committerRob Clark <robdclark@chromium.org>
Wed, 8 Dec 2021 18:34:55 +0000 (10:34 -0800)
commitf61550b3864b9578527c28cf9c465316ac1566e1
tree84549c2e375d341f2601ed2afc10157341e8403f
parent44bf8704b71f86c4e56c4dbefc2bd40cbb5b269b
drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read failed

Add checking aux read/write status at both dp_link_parse_sink_count()
and dp_link_parse_sink_status_filed() to avoid long timeout delay if
dp aux read/write failed at timeout due to cable unplugged.

Changes in V4:
-- split this patch as stand alone patch

Changes in v5:
-- rebase on msm-next branch

Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1638985262-2072-1-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_display.c
drivers/gpu/drm/msm/dp/dp_link.c