summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2021-01-12 18:22:47 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-01-13 23:48:34 -0500
commit966737906ce063e5d7314aa12664970a1949eb02 (patch)
tree4a20415a6425638a3227cff859bac97d93244566 /drivers/gpu/drm/amd/pm
parent743538838c6a6b368ef58cad9528b15615e4ec33 (diff)
downloadlinux-966737906ce063e5d7314aa12664970a1949eb02.tar.gz
linux-966737906ce063e5d7314aa12664970a1949eb02.tar.bz2
linux-966737906ce063e5d7314aa12664970a1949eb02.zip
drm/amd/pm: fix the return value of pm message
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
index 11944d640ab0..e4eff6d9f092 100644
--- 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;