disp: msm: dp: fix warnings due to dp_hdcp2p2 thread reparking
This change checks "dp_hdcp2p2" thread's parked state, before attempting to park the thread. This would avoid a warning message from the kernel module, in case if the thread is already parked. Change-Id: I3133da7159c9806981e4760be275c0a54036958b Signed-off-by: Sandeep Gangadharaiah <sandgang@codeaurora.org>
Šī revīzija ir iekļauta:
@@ -316,7 +316,8 @@ static int dp_hdcp2p2_authenticate(void *input)
|
|||||||
ctrl->sink_status = SINK_CONNECTED;
|
ctrl->sink_status = SINK_CONNECTED;
|
||||||
atomic_set(&ctrl->auth_state, HDCP_STATE_AUTHENTICATING);
|
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);
|
kfifo_reset(&ctrl->cmd_q);
|
||||||
kthread_unpark(ctrl->thread);
|
kthread_unpark(ctrl->thread);
|
||||||
|
|
||||||
|
Atsaukties uz šo jaunā problēmā
Block a user