]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Set crc->opened to false before setting crc source to NULL.
authorDingchen Zhang <dingchen.zhang@amd.com>
Fri, 26 Jul 2019 17:37:43 +0000 (13:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 20:29:40 +0000 (15:29 -0500)
commit106fabb995c89812d5f75c7544dba68faf58ba75
treee11eaa03acd95ac7c04f130fb77aab779700152f
parent5fd5bcbf50fc556f00c14d9b7def6f487a10f16e
drm: Set crc->opened to false before setting crc source to NULL.

to terminate the while-loop in drm_dp_aux_crc_work when
drm_dp_start/stop_crc are called in the hook to set crc source.

v3: set crc->opened to false without checking (Nick)
v2: Move spin_lock around entire crc->opened use (Daniel)

Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Harry Wentland <Harry.Wentland@amd.com>
Cc: Nick Kazlauskas <Nicholas.Kazlauskas@amd.com>
Signed-off-by: Dingchen Zhang <dingchen.zhang@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190726173743.11641-1-dingchen.zhang@amd.com
drivers/gpu/drm/drm_debugfs_crc.c