drm/amd/display: fix issue related to infopacket was not transmitted
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 11 Apr 2018 17:19:56 +0000 (13:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:08 +0000 (13:44 -0500)
commit388277b17023e69fdbf6ed68cec42fa7616ce454
tree05979b2b28195f6917744aa91d28529db5012020
parent3d777c82bda9a82cc304de5ba51122d248f7a584
drm/amd/display: fix issue related to infopacket was not transmitted

Check in code was incorrect, and infopacket is only transmitted after update
function is called multiple times.
Purpose of the function was to check if infopackets are being enabled, and
then enable global control. Fix the code to do this.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c