<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="x_divRplyFwdMsg" dir="ltr">
<div></div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Change-Id: Ie5fe90762f75497fab68b913874956bbeab11e72<br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 12 ++----------<br>
 1 file changed, 2 insertions(+), 10 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c<br>
index e00ed19..1d9d571 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c<br>
@@ -867,8 +867,7 @@ static ssize_t amdgpu_hwmon_get_pwm1_enable(struct device *dev,<br>
 <br>
         pwm_mode = amdgpu_dpm_get_fan_control_mode(adev);<br>
 <br>
-       /* never 0 (full-speed), fuse or smc-controlled always */<br>
-       return sprintf(buf, "%i\n", pwm_mode == FDO_PWM_MODE_STATIC ? 1 : 2);<br>
+       return sprintf(buf, "%i\n", pwm_mode);<br>
 }<br>
 <br>
 static ssize_t amdgpu_hwmon_set_pwm1_enable(struct device *dev,<br>
@@ -887,14 +886,7 @@ static ssize_t amdgpu_hwmon_set_pwm1_enable(struct device *dev,<br>
         if (err)<br>
                 return err;<br>
 <br>
-       switch (value) {<br>
-       case 1: /* manual, percent-based */<br>
-               amdgpu_dpm_set_fan_control_mode(adev, FDO_PWM_MODE_STATIC);<br>
-               break;<br>
-       default: /* disable */<br>
-               amdgpu_dpm_set_fan_control_mode(adev, 0);<br>
-               break;<br>
-       }<br>
+       amdgpu_dpm_set_fan_control_mode(adev, value);<br>
 <br>
         return count;<br>
 }<br>
-- <br>
1.9.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>