amd/dc/dce100: On dce100, set clocks to 0 on suspend
authorDavid Francis <David.Francis@amd.com>
Thu, 12 Jul 2018 14:07:49 +0000 (10:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Jul 2018 14:50:05 +0000 (09:50 -0500)
commit8d4235f71513cdccd9dc52b674323c3591552bc1
treeb90903bd7ab9ac665ef5711c12285ca4b099d752
parentd89d01f2232b90e8024ae07ff5ab213521875448
amd/dc/dce100: On dce100, set clocks to 0 on suspend

[Why]
When a dce100 asic was suspended, the clocks were not set to 0.
Upon resume, the new clock was compared to the existing clock,
they were found to be the same, and so the clock was not set.
This resulted in a pernicious blackscreen.

[How]
In atomic commit, check to see if there are any active pipes.
If no, set clocks to 0

Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c