aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0936-drm-amd-powerplay-Fix-indentation-in-vega10_fan_ctrl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0936-drm-amd-powerplay-Fix-indentation-in-vega10_fan_ctrl.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0936-drm-amd-powerplay-Fix-indentation-in-vega10_fan_ctrl.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0936-drm-amd-powerplay-Fix-indentation-in-vega10_fan_ctrl.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0936-drm-amd-powerplay-Fix-indentation-in-vega10_fan_ctrl.patch
new file mode 100644
index 00000000..c0027b29
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0936-drm-amd-powerplay-Fix-indentation-in-vega10_fan_ctrl.patch
@@ -0,0 +1,41 @@
+From a9364dc8a94892b5405179bb92045eb6eaeab306 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Thu, 7 Sep 2017 12:42:38 -0400
+Subject: [PATCH 0936/4131] drm/amd/powerplay: Fix indentation in
+ vega10_fan_ctrl_reset_fan_speed_to_default()
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 12 ++++--------
+ 1 file changed, 4 insertions(+), 8 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
+index 7a25e22..664133e 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
+@@ -307,17 +307,13 @@ int vega10_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr,
+ */
+ int vega10_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr)
+ {
+- int result;
+-
+ if (hwmgr->thermal_controller.fanInfo.bNoFan)
+ return 0;
+
+- if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl)) {
+- result = vega10_fan_ctrl_start_smc_fan_control(hwmgr);
+- } else
+- result = vega10_fan_ctrl_set_default_mode(hwmgr);
+-
+- return result;
++ if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl))
++ return vega10_fan_ctrl_start_smc_fan_control(hwmgr);
++ else
++ return vega10_fan_ctrl_set_default_mode(hwmgr);
+ }
+
+ /**
+--
+2.7.4
+