mirror_ubuntu-kernels/drivers/gpu/drm/msm/dp
Kuogee Hsieh 2f9b5b3ae2 drm/msm/dp: fix event thread stuck in wait_event after kthread_stop()
Event thread supposed to exit from its while loop after kthread_stop().
However there may has possibility that event thread is pending in the
middle of wait_event due to condition checking never become true.
To make sure event thread exit its loop after kthread_stop(), this
patch OR kthread_should_stop() into wait_event's condition checking
so that event thread will exit its loop after kernal_stop().

Changes in v2:
--  correct spelling error at commit title

Changes in v3:
-- remove unnecessary parenthesis
-- while(1) to replace while (!kthread_should_stop())

Reported-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: 570d3e5d28 ("drm/msm/dp: stop event kernel thread when DP unbind")
Signed-off-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/484576/
Link: https://lore.kernel.org/r/1651595136-24312-1-git-send-email-quic_khsieh@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-05-07 02:10:35 +03:00
..
dp_audio.c drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp 2022-05-02 02:13:01 +03:00
dp_audio.h drm/msm/dp: add audio support for Display Port on MSM 2020-09-15 10:54:34 -07:00
dp_aux.c drm/msm/dp: wait for hpd high before aux transaction 2022-05-02 02:39:34 +03:00
dp_aux.h drm/msm/dp: wait for hpd high before aux transaction 2022-05-02 02:39:34 +03:00
dp_catalog.c drm/msm/dp: wait for hpd high before aux transaction 2022-05-02 02:39:34 +03:00
dp_catalog.h drm/msm/dp: wait for hpd high before aux transaction 2022-05-02 02:39:34 +03:00
dp_clk_util.c drm/msm/dpu: simplify clocks handling 2022-02-18 20:15:12 +03:00
dp_clk_util.h drm/msm/dpu: simplify clocks handling 2022-02-18 20:15:12 +03:00
dp_ctrl.c drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test 2022-05-02 02:39:34 +03:00
dp_ctrl.h drm/msm/dp: tear down main link at unplug handle immediately 2022-05-02 02:13:01 +03:00
dp_debug.c drm/msm/dp: remove max_pclk_khz field from dp_panel/dp_display 2022-05-02 02:13:01 +03:00
dp_debug.h drm/msm/dp: Use the connector passed to dp_debug_get() 2021-10-15 16:40:09 -07:00
dp_display.c drm/msm/dp: fix event thread stuck in wait_event after kthread_stop() 2022-05-07 02:10:35 +03:00
dp_display.h drm/msm/dp: Add eDP support via aux_bus 2022-05-02 02:13:01 +03:00
dp_drm.c drm/msm/dp: Add eDP support via aux_bus 2022-05-02 02:13:01 +03:00
dp_drm.h drm/msm/dp: remove extra wrappers and public functions 2022-05-02 02:13:01 +03:00
dp_hpd.c drm/msm/dp: Drop now unused hpd_high member 2021-11-29 16:19:58 -08:00
dp_hpd.h drm/msm/dp: Drop now unused hpd_high member 2021-11-29 16:19:58 -08:00
dp_link.c drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp 2022-05-02 02:13:01 +03:00
dp_link.h drm/msm/dp: DisplayPort PHY compliance tests fixup 2020-11-04 08:26:25 -08:00
dp_panel.c drm/msm/dp: drop dp_mode argument from dp_panel_get_modes() 2022-05-02 02:13:01 +03:00
dp_panel.h drm/msm/dp: remove max_pclk_khz field from dp_panel/dp_display 2022-05-02 02:13:01 +03:00
dp_parser.c drm/msm/dp: Add eDP support via aux_bus 2022-05-02 02:13:01 +03:00
dp_parser.h drm/msm/dp: Add eDP support via aux_bus 2022-05-02 02:13:01 +03:00
dp_power.c drm/msm/dp: replace DRM_DEBUG_DP marco with drm_dbg_dp 2022-05-02 02:13:01 +03:00
dp_power.h drm/msm/dp: Fixed couple of typos 2021-06-23 07:33:52 -07:00
dp_reg.h drm/msm/dp: return correct connection status after suspend 2020-11-10 12:38:58 -08:00