projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7435388
)
drm/amd/pm: fix the return value of pm message
author
Huang Rui
<ray.huang@amd.com>
Tue, 12 Jan 2021 10:22:47 +0000
(18:22 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:48:34 +0000
(23:48 -0500)
0 should be right driver return value, 0x1 is the right firmware
return value. So switch to 0 at last.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Xiaojian Du <xiaojian.du@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
index 11944d640ab0dcdfefbf483e49d434a2e5584530..e4eff6d9f092ac92f70d8e17ebbfd458aa2319a0 100644
(file)
--- a/
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
+++ b/
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
@@
-152,6
+152,7
@@
int smu_cmn_send_smc_msg_with_param(struct smu_context *smu,
if (read_arg)
smu_cmn_read_arg(smu, read_arg);
+ ret = 0; /* 0 as driver return value */
out:
mutex_unlock(&smu->message_lock);
return ret;