]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/msm/dp: check sink_count before update is_connected status
authorKuogee Hsieh <khsieh@codeaurora.org>
Wed, 21 Apr 2021 23:37:35 +0000 (16:37 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:35 +0000 (11:07 +0200)
commit464d26a2347e5eba5dc1f4277ff937bc05571b1d
treeb7828f9e874edef8cb3bac32cc51d3ea82a30e27
parent034a946f39ae5d429867bc0081a63c9d6f65ae9b
drm/msm/dp: check sink_count before update is_connected status

BugLink: https://bugs.launchpad.net/bugs/1931292
commit d9aa6571b28ba0022de1e48801ff03a1854c7ef2 upstream.

Link status is different from display connected status in the case
of something like an Apple dongle where the type-c plug can be
connected, and therefore the link is connected, but no sink is
connected until an HDMI cable is plugged into the dongle.
The sink_count of DPCD of dongle will increase to 1 once an HDMI
cable is plugged into the dongle so that display connected status
will become true. This checking also apply at pm_resume.

Changes in v4:
-- none

Fixes: 94e58e2d06e3 ("drm/msm/dp: reset dp controller only at boot up and pm_resume")
Reported-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Fixes: 8ede2ecc3e5e ("drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets")
Link: https://lore.kernel.org/r/1619048258-8717-2-git-send-email-khsieh@codeaurora.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/msm/dp/dp_display.c