drm/amd/display: set clocks to 0 on suspend on dce80
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Tue, 5 Feb 2019 19:03:52 +0000 (14:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Feb 2019 21:58:06 +0000 (16:58 -0500)
commit4ece61a22be5ab5d49cc5fc20a19a0afa24a019d
treec07600e2291a470fd8b664bd402c37bc3388071e
parent9f7ddbea2bb826a2147309f735726a8b09950944
drm/amd/display: set clocks to 0 on suspend on dce80

[Why]
When a dce80 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 blackscreen.

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

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c