aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0944-drm-amd-powerplay-Tidy-up-smu7_fan_ctrl_get_fan_spee.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0944-drm-amd-powerplay-Tidy-up-smu7_fan_ctrl_get_fan_spee.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0944-drm-amd-powerplay-Tidy-up-smu7_fan_ctrl_get_fan_spee.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0944-drm-amd-powerplay-Tidy-up-smu7_fan_ctrl_get_fan_spee.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0944-drm-amd-powerplay-Tidy-up-smu7_fan_ctrl_get_fan_spee.patch
new file mode 100644
index 00000000..08b0437e
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0944-drm-amd-powerplay-Tidy-up-smu7_fan_ctrl_get_fan_spee.patch
@@ -0,0 +1,29 @@
+From 0d994e877763e942233990fd363e5f1e0a79a4e6 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Tue, 12 Sep 2017 09:51:36 -0400
+Subject: [PATCH 0944/4131] drm/amd/powerplay: Tidy up
+ smu7_fan_ctrl_get_fan_speed_rpm()
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
+index a491f12..be836799 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c
+@@ -86,8 +86,7 @@ int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed)
+ uint32_t crystal_clock_freq;
+
+ if (hwmgr->thermal_controller.fanInfo.bNoFan ||
+- (hwmgr->thermal_controller.fanInfo.
+- ucTachometerPulsesPerRevolution == 0))
++ !hwmgr->thermal_controller.fanInfo.ucTachometerPulsesPerRevolution)
+ return -ENODEV;
+
+ tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC,
+--
+2.7.4
+