drm/radeon: bind fan control on CI cards to hwmon interface (v2)
authorOleg Chernovskiy <algonkvel@gmail.com>
Sun, 7 Dec 2014 21:10:46 +0000 (00:10 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Jan 2015 15:38:48 +0000 (10:38 -0500)
commit36689e57502bd4de86abe5e55fff60b974416a52
treeda010de03081fa80bcb967dc1dee13f2e17513e2
parent99736703a9beedcb9afc69cde8e13846c713a4a3
drm/radeon: bind fan control on CI cards to hwmon interface (v2)

This adds a possibility to control fan on CI parts
via exported hwmon variables. Note that automatic
ucode fan management pauses if you choose to enable
manual fan control.  Use with caution!

v2: agd5f: fix formatting, squash in:

    minor fix for pwm1_enable exposed value

    Track smc control in addition to fan mode
    This fixes pwm1_enable being constantly set
    to 1 because of enabled smc control

also handle the case where smc fan control is disabled.

Signed-off-by: Oleg Chernovskiy <algonkvel@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ci_dpm.c
drivers/gpu/drm/radeon/ci_dpm.h
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_asic.h