Skip to contentSkip to conversation

drm/amd/pp: Fix incorrect return value in smu7_check_clk_voltage_valid

PATCH In review Rex Zhu 3 participants 3 messages Mar 2, 2018 – Mar 5, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

PATCH 1/1 drm/amd/pp: Fix incorrect return value in smu7_check_clk_voltage_valid

Change-Id I248982c5e0100b7a975d1a19781749baeadd71f4
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +1 -1
index dbfe139..10fb3ec 100644
@@ -4692,7 +4692,7 @@ static bool smu7_check_clk_voltage_valid(struct pp_hwmgr *hwmgr,
 	struct phm_ppt_v1_clock_voltage_dependency_table *dep_sclk_table;
 
 	if (table_info == NULL)
-		return -EINVAL;
+		return false;
 
 	dep_sclk_table = table_info->vdd_dep_on_sclk;
 	min_vddc = dep_sclk_table->entries[0].vddc;
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1519987762-27156-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org

Reviewed-by Evan Quan
#2 lore raw

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Rex Zhu
Sent: Friday, March 02, 2018 6:49 PM
To: [email protected]
Cc: Zhu, Rex <[email protected]>
Subject: [PATCH] drm/amd/pp: Fix incorrect return value in smu7_check_clk_voltage_valid

Change-Id I248982c5e0100b7a975d1a19781749baeadd71f4
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +1 -1
index dbfe139..10fb3ec 100644
@@ -4692,7 +4692,7 @@ static bool smu7_check_clk_voltage_valid(struct pp_hwmgr *hwmgr,
 	struct phm_ppt_v1_clock_voltage_dependency_table *dep_sclk_table;
 
 	if (table_info == NULL)
-		return -EINVAL;
+		return false;
 
 	dep_sclk_table = table_info->vdd_dep_on_sclk;
 	min_vddc = dep_sclk_table->entries[0].vddc;
Signature · 10 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by
#3 lore raw
In reply to a message not in the archive
Quoted 2 lines · Rex Zhu
Change-Id I248982c5e0100b7a975d1a19781749baeadd71f4
Quoted 20 lines
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +1 -2
index dbfe139..10fb3ec 100644
@@ -4692,7 +4692,7 @@ static bool smu7_check_clk_voltage_valid(struct pp_hwmgr *hwmgr,
        struct phm_ppt_v1_clock_voltage_dependency_table *dep_sclk_table;
 
        if (table_info == NULL)
-               return -EINVAL;
+               return false;
 
        dep_sclk_table = table_info->vdd_dep_on_sclk;
        min_vddc = dep_sclk_table->entries[0].vddc;
--

1.9.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx