drm/amd/display: Check for dmcu initialization before calling dmcu
authorDavid Francis <David.Francis@amd.com>
Tue, 23 Oct 2018 17:58:39 +0000 (13:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:36 +0000 (15:27 -0500)
commit4b594b8d87cbc06602d03395c20fd1d7d216990f
treeb41b6eccac32df46c497eff6a1f1db710c39b56c
parent8ce504b9389be846bcdf512ed5be8f661b3bf097
drm/amd/display: Check for dmcu initialization before calling dmcu

[Why]
DMCU firmware is not required - the system is expected to run
fine without it.  Therefore, wherever dmcu functions could be
called, dmcu initialization shoudl be checked

[How]
Use the helpful hook dmcu_funcs->is_dmcu_initialized

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c