drm/msm/dp: fix connect/disconnect handled at irq_hpd
stable inclusion from stable-v5.10.127 commit acf76125bb2b247d27cb4ca57fda772c8a691fe9 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5XDDK Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=acf76125bb2b247d27cb4ca57fda772c8a691fe9 -------------------------------- [ Upstream commit c58eb1b5 ] 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: Nkernel test robot <lkp@intel.com> Fixes: 26b8d66a ("drm/msm/dp: promote irq_hpd handle to handle link training correctly") Tested-by: NStephen Boyd <swboyd@chromium.org> Signed-off-by: NKuogee Hsieh <khsieh@codeaurora.org> Signed-off-by: NRob Clark <robdclark@chromium.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录