Merge "disp: msm: dp: fix warnings due to dp_hdcp2p2 thread reparking"

This commit is contained in:
qctecmdr
2021-11-02 14:52:25 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -316,7 +316,8 @@ static int dp_hdcp2p2_authenticate(void *input)
ctrl->sink_status = SINK_CONNECTED;
atomic_set(&ctrl->auth_state, HDCP_STATE_AUTHENTICATING);
kthread_park(ctrl->thread);
if (kthread_should_park())
kthread_park(ctrl->thread);
kfifo_reset(&ctrl->cmd_q);
kthread_unpark(ctrl->thread);