drm/amd/display: Register DMUB service with DC
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 28 Oct 2019 13:07:30 +0000 (09:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Nov 2019 20:29:42 +0000 (15:29 -0500)
commit9a71c7d31734f74549ad2bcd652c403c71e7c8d1
tree79ff2b9d858a938d48078a73ab672a4d0875b894
parent3a1627b07385a6bb497f7ca4e2ffe1e1dbc70b68
drm/amd/display: Register DMUB service with DC

[Why]
DC can utilize the DMUB server to send commands to the DMUB but it's
the DM responsibility to pass it the service to use.

[How]
Create the dc_dmub_srv after we finish initializing the dmub_srv.
Cleanup the dc_dmub_srv before destroying the dmub_srv or dc.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c