]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: Allow changing of fan_control in smu_v11_0
authorMatt Coffin <mcoffin13@gmail.com>
Wed, 31 Jul 2019 20:14:35 +0000 (14:14 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 3 Aug 2019 02:55:47 +0000 (21:55 -0500)
commitfea0526285c05f80aafe85cbaa9bb23eb0f6d400
tree73e303549fd4c78243de935aea68516207194e88
parent6c4ae02391d78fa3293b26cfccbc0b39132c4f49
drm/amd/powerplay: Allow changing of fan_control in smu_v11_0

[Why]
Before this change, the fan control state on smu_v11 was not able to be
changed because the capability check for checking if the fan control
capability existed was inverted.

[How]
The capability check for fan control in smu_v11_0_auto_fan_control was
inverted, to correctly check for the absence, instead of presence of fan
control capabilities.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Matt Coffin <mcoffin13@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c