]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 07:03:23 +0000 (09:03 +0200)
commitad6d93bfb505fc2d258b8c55479c67252d920c6b
tree33cb6955678b744f65a78b1a22261d72e6e26b02
parentdec1e383e3bdb999e89046013a3eda4c88abbd58
drm/msm/dp: dp_link_parse_sink_count() return immediately if aux read failed

[ Upstream commit c7f219129db7384c16d35c92dd4e8f7cfd9f66ba ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/dp/dp_display.c
drivers/gpu/drm/msm/dp/dp_link.c