diff --git a/msm/dp/dp_hdcp2p2.c b/msm/dp/dp_hdcp2p2.c index bf9f4894de..ee721db850 100644 --- a/msm/dp/dp_hdcp2p2.c +++ b/msm/dp/dp_hdcp2p2.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ @@ -877,7 +877,7 @@ static int dp_hdcp2p2_main(void *data) enum hdcp_transport_wakeup_cmd cmd; while (1) { - wait_event(ctrl->wait_q, + wait_event_idle(ctrl->wait_q, !kfifo_is_empty(&ctrl->cmd_q) || kthread_should_stop() || kthread_should_park()); diff --git a/msm/sde_hdcp_2x.c b/msm/sde_hdcp_2x.c index b346b8712e..9e63ec9fd7 100644 --- a/msm/sde_hdcp_2x.c +++ b/msm/sde_hdcp_2x.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* + * Copyright (c) 2022-2023, Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved. */ @@ -970,7 +971,7 @@ static int sde_hdcp_2x_main(void *data) enum sde_hdcp_2x_wakeup_cmd cmd; while (1) { - wait_event(hdcp->wait_q, + wait_event_idle(hdcp->wait_q, !kfifo_is_empty(&hdcp->cmd_q) || kthread_should_stop() || kthread_should_park());