]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amd/display: Explicitly call ->reset for each object
authorHarry Wentland <harry.wentland@amd.com>
Fri, 20 Oct 2017 12:43:40 +0000 (08:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Nov 2017 17:02:38 +0000 (13:02 -0400)
commit96719c5439b4d75bfd6b3c5cb24f1a8e537125bb
tree21cb63874b78b2c77c09e4f8f4ee27d9d88a2658
parentcd8a2ae8dc08a92d4804a7adda645f1f8d1f7586
drm/amd/display: Explicitly call ->reset for each object

We need to avoid calling reset after detection because the next
commit adds freesync properties on the atomic_state which are set
during detection. Calling reset after this clears them.

The easiest way to accomplish this right now is to call ->reset on
the connector right after creation but before detection. To stay
consistent call ->reset on every other object as well after creation.

v2: Provide better reason for this change in commit msg.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c