Skip to content

Commit 2ebbe7c

Browse files
Bhawanpreet Lakhaalexdeucher
authored andcommitted
drm/amd/display: Correctly cancel future watchdog and callback events
[Why] -We need to cancel future callbacks/watchdogs events when a callback/watchdog event happens [How] -fix typo in event_callback() -cancel callback, not watchdog -cancel watchdog events in event_watchdog_timer(). Signed-off-by: Bhawanpreet Lakha <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c2850c1 commit 2ebbe7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static void event_callback(struct work_struct *work)
266266

267267
mutex_lock(&hdcp_work->mutex);
268268

269-
cancel_delayed_work(&hdcp_work->watchdog_timer_dwork);
269+
cancel_delayed_work(&hdcp_work->callback_dwork);
270270

271271
mod_hdcp_process_event(&hdcp_work->hdcp, MOD_HDCP_EVENT_CALLBACK,
272272
&hdcp_work->output);
@@ -347,6 +347,8 @@ static void event_watchdog_timer(struct work_struct *work)
347347

348348
mutex_lock(&hdcp_work->mutex);
349349

350+
cancel_delayed_work(&hdcp_work->watchdog_timer_dwork);
351+
350352
mod_hdcp_process_event(&hdcp_work->hdcp,
351353
MOD_HDCP_EVENT_WATCHDOG_TIMEOUT,
352354
&hdcp_work->output);

0 commit comments

Comments
 (0)