projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29b9c52
)
drm/amd/powerplay: fix logic error.
author
Rex Zhu
<
[email protected]
>
Fri, 17 Jun 2016 10:21:01 +0000
(18:21 +0800)
committer
Alex Deucher
<
[email protected]
>
Tue, 21 Jun 2016 14:22:29 +0000
(10:22 -0400)
the error lead powerplay can't get display info in DGPU case.
store_cc6_data just implement in APU.
Signed-off-by: Rex Zhu <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
index fa208ada689219f4eb072ebb5e655e0a03cc9ab7..efb77eda7508426e71f9536cf0cb10593539db53 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
@@
-306,10
+306,14
@@
int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr,
{
PHM_FUNC_CHECK(hwmgr);
- if (
hwmgr->hwmgr_func->store_cc6_data
== NULL)
+ if (
display_config
== NULL)
return -EINVAL;
hwmgr->display_config = *display_config;
+
+ if (hwmgr->hwmgr_func->store_cc6_data == NULL)
+ return -EINVAL;
+
/* to do pass other display configuration in furture */
if (hwmgr->hwmgr_func->store_cc6_data)