radeon: call the correct idle function, logic got inverted.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, March 30, 2009 - 2:02 pm

Gitweb:     http://git.kernel.org/linus/53c379e9462b59d4e166429ff064aaf0e7743795
Commit:     53c379e9462b59d4e166429ff064aaf0e7743795
Parent:     800b69951174f7de294da575d7e7921041a7e783
Author:     Dave Airlie <airlied@redhat.com>
AuthorDate: Mon Mar 9 12:12:28 2009 +1000
Committer:  Dave Airlie <airlied@redhat.com>
CommitDate: Fri Mar 13 14:24:17 2009 +1000

    radeon: call the correct idle function, logic got inverted.
    
    This calls the correct idle function for the R600 and previous chips.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/radeon/radeon_cp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c
index 15cfe56..f5b7e47 100644
--- a/drivers/gpu/drm/radeon/radeon_cp.c
+++ b/drivers/gpu/drm/radeon/radeon_cp.c
@@ -1702,7 +1702,7 @@ void radeon_do_release(struct drm_device * dev)
 	if (dev_priv) {
 		if (dev_priv->cp_running) {
 			/* Stop the cp */
-			if ((dev_priv->flags & RADEON_FAMILY_MASK) < CHIP_R600) {
+			if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_R600) {
 				while ((ret = r600_do_cp_idle(dev_priv)) != 0) {
 					DRM_DEBUG("radeon_do_cp_idle %d\n", ret);
 #ifdef __linux__
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
radeon: call the correct idle function, logic got inverted., Linux Kernel Mailing ..., (Mon Mar 30, 2:02 pm)