OSDN Git Service

drm/msm/dp: fix connect/disconnect handled at irq_hpd
authorKuogee Hsieh <khsieh@codeaurora.org>
Wed, 18 Nov 2020 21:00:14 +0000 (13:00 -0800)
committerRob Clark <robdclark@chromium.org>
Thu, 3 Dec 2020 16:51:40 +0000 (08:51 -0800)
commitc58eb1b54feefc3a47fab78addd14083bc941c44
tree00c2d2e7a57d4ae521e15fc129aa74954084e12f
parent854f6f1c653ba7d38acc3fc9dabb42e2db5837c1
drm/msm/dp: fix connect/disconnect handled at irq_hpd

Some usb type-c dongle use irq_hpd request to perform device connection
and disconnection. This patch add handling of both connection and
disconnection are based on the state of hpd_state and sink_count.

Changes in V2:
-- add dp_display_handle_port_ststus_changed()
-- fix kernel test robot complaint

Changes in V3:
-- add encoder_mode_set into struct dp_display_private

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 26b8d66a399e ("drm/msm/dp: promote irq_hpd handle to handle link training correctly")
Tested-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_display.c