All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Alex Deucher <alexander.deucher-5C7GfCeVMHo@public.gmane.org>,
	Rex Zhu <Rex.Zhu-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH] drm/amd/powerplay: fix issue dpm blocked by no led config.
Date: Tue, 21 Mar 2017 09:51:12 -0400	[thread overview]
Message-ID: <1490104273-335-3-git-send-email-alexander.deucher@amd.com> (raw)
In-Reply-To: <1490104273-335-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>

From: Rex Zhu <Rex.Zhu@amd.com>

some cards don't support led config.
so not return error in this case.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 4becd57..43fdbb1 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -873,7 +873,7 @@ static int vega10_setup_dpm_led_config(struct pp_hwmgr *hwmgr)
 	pp_table->LedPin0 = (uint8_t)(mask & 0xff);
 	pp_table->LedPin1 = (uint8_t)((mask >> 8) & 0xff);
 	pp_table->LedPin2 = (uint8_t)((mask >> 16) & 0xff);
-	return ret;
+	return 0;
 }
 
 static int vega10_setup_asic_task(struct pp_hwmgr *hwmgr)
-- 
2.5.5

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-03-21 13:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21 13:51 [PATCH] drm/amd/display: Remove DCE12 guards Alex Deucher
     [not found] ` <1490104273-335-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2017-03-21 13:51   ` [PATCH] drm/amd/powerplay: Fix bug in vega10_get_fan_control_mode Alex Deucher
2017-03-21 13:51   ` Alex Deucher [this message]
2017-03-21 13:51   ` [PATCH] drm/amdgpu: remove the clearance of vce 4.0 interrupt mask Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1490104273-335-3-git-send-email-alexander.deucher@amd.com \
    --to=alexdeucher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=Rex.Zhu-5C7GfCeVMHo@public.gmane.org \
    --cc=alexander.deucher-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.