public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/i915: PSR: Remove wrong LINK_DISABLE.
@ 2015-04-10 18:15 Rodrigo Vivi
  2015-04-10 18:15 ` [PATCH 2/5] drm/i915: PSR: Fix DP_PSR_NO_TRAIN_ON_EXIT logic Rodrigo Vivi
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Rodrigo Vivi @ 2015-04-10 18:15 UTC (permalink / raw)
  To: intel-gfx; +Cc: Rodrigo Vivi

This wrong logic and useless define came from first versions and
came along with all rework. Just now I notice how ugly, wrong and
useless this is.

val is already defined as 0 anyway and logic is completelly wrong
and useless. So let's starting the link_standby fix with this
cleaning.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
---
 drivers/gpu/drm/i915/i915_reg.h  | 1 -
 drivers/gpu/drm/i915/intel_psr.c | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 596e8eb..9f88b21 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -2684,7 +2684,6 @@ enum skl_disp_power_wells {
 #define EDP_PSR_CTL(dev)			(EDP_PSR_BASE(dev) + 0)
 #define   EDP_PSR_ENABLE			(1<<31)
 #define   BDW_PSR_SINGLE_FRAME			(1<<30)
-#define   EDP_PSR_LINK_DISABLE			(0<<27)
 #define   EDP_PSR_LINK_STANDBY			(1<<27)
 #define   EDP_PSR_MIN_LINK_ENTRY_TIME_MASK	(3<<25)
 #define   EDP_PSR_MIN_LINK_ENTRY_TIME_8_LINES	(0<<25)
diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c
index 27608ce..db95b39 100644
--- a/drivers/gpu/drm/i915/intel_psr.c
+++ b/drivers/gpu/drm/i915/intel_psr.c
@@ -269,8 +269,7 @@ static void hsw_psr_enable_source(struct intel_dp *intel_dp)
 		val |= EDP_PSR_TP2_TP3_TIME_0us;
 		val |= EDP_PSR_TP1_TIME_0us;
 		val |= EDP_PSR_SKIP_AUX_EXIT;
-	} else
-		val |= EDP_PSR_LINK_DISABLE;
+	}
 
 	I915_WRITE(EDP_PSR_CTL(dev), val |
 		   (IS_BROADWELL(dev) ? 0 : link_entry_time) |
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-06-17  8:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-10 18:15 [PATCH 1/5] drm/i915: PSR: Remove wrong LINK_DISABLE Rodrigo Vivi
2015-04-10 18:15 ` [PATCH 2/5] drm/i915: PSR: Fix DP_PSR_NO_TRAIN_ON_EXIT logic Rodrigo Vivi
2015-04-14 13:24   ` R, Durgadoss
2015-04-10 18:15 ` [PATCH 3/5] drm/i915: PSR: deprecate link_standby support for core platforms Rodrigo Vivi
2015-04-10 18:15 ` [PATCH 4/5] drm/i915: PSR VLV: Add single frame update Rodrigo Vivi
2015-04-14 18:04   ` Daniel Vetter
2015-04-14 18:09     ` Vivi, Rodrigo
2015-06-17  8:21   ` Daniel Vetter
2015-04-10 18:15 ` [PATCH 5/5] drm/i915: Enable PSR by default Rodrigo Vivi
2015-04-10 22:05   ` Matthew Garrett
2015-04-13 23:09     ` Rodrigo Vivi
2015-04-13 23:46       ` Rodrigo Vivi
2015-04-18  7:27         ` Matthew Garrett
2015-04-20 14:43           ` Vivi, Rodrigo
2015-06-13  6:47             ` Rodrigo Vivi
2015-04-11  3:26   ` shuang.he

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox