projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'amd-drm-next-5.20-2022-07-14' of https://gitlab.freedesktop.org/agd5f...
[linux-2.6-microblaze.git]
/
drivers
/
gpu
/
drm
/
amd
/
pm
/
swsmu
/
smu11
/
smu_v11_0.c
diff --git
a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
index
8f828ec
..
dccbd9f
100644
(file)
--- a/
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
+++ b/
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
@@
-1228,6
+1228,8
@@
int smu_v11_0_set_fan_speed_rpm(struct smu_context *smu,
uint32_t crystal_clock_freq = 2500;
uint32_t tach_period;
+ if (speed == 0)
+ return -EINVAL;
/*
* To prevent from possible overheat, some ASICs may have requirement
* for minimum fan speed: