drm/amdgpu: clean up atpx power control handling
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jun 2016 16:42:35 +0000 (12:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:00 +0000 (14:51 -0400)
commit8d45f80ed08b1909988f38c094e5ace6d879ca10
tree01f6ed2502ae1521e77bddf09dfc8f32e94f0270
parent5c614792474bf80b87d6cd915d9db14406c9c779
drm/amdgpu: clean up atpx power control handling

The presence of the power control method should be determined
via the presence of the method in function 0.  However, some
sbioses only set the appropriate bits in function 1 so use
then to override a missing power control function.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c