drm/amd/pm: apply no power source workaround if dc reported by gpio
authorEvan Quan <evan.quan@amd.com>
Fri, 4 Sep 2020 06:55:43 +0000 (14:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Sep 2020 21:48:32 +0000 (17:48 -0400)
commit236b156f738886d12336215434c605cbc4da7b89
tree6758b9269fba2b8df850a1e75aec2820b813028b
parent71f9404f19af1da2a4cc583e2d6db448f25a5e1a
drm/amd/pm: apply no power source workaround if dc reported by gpio

If dc reported by gpio is supported, the power source switching will
be performed by pmfw automatically. Thus the power source setting
workaround for Navi1x will be not needed.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c