public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: only get clock for active pipes
@ 2013-09-19 20:26 Jesse Barnes
  2013-09-19 20:26 ` [PATCH 2/2] drm/i915/vlv: add VLV specific clock_get function Jesse Barnes
  2013-09-20  7:50 ` [PATCH 1/2] drm/i915: only get clock for active pipes Daniel Vetter
  0 siblings, 2 replies; 3+ messages in thread
From: Jesse Barnes @ 2013-09-19 20:26 UTC (permalink / raw)
  To: intel-gfx

Otherwise the pixel_multiplier may not be set, and who knows what else
in the future.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 1d14ad3..8d7b5f0 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8790,7 +8790,7 @@ check_crtc_state(struct drm_device *dev)
 				encoder->get_config(encoder, &pipe_config);
 		}
 
-		if (dev_priv->display.get_clock)
+		if (active && dev_priv->display.get_clock)
 			dev_priv->display.get_clock(crtc, &pipe_config);
 
 		WARN(crtc->active != active,
-- 
1.7.9.5

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

end of thread, other threads:[~2013-09-20  7:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19 20:26 [PATCH 1/2] drm/i915: only get clock for active pipes Jesse Barnes
2013-09-19 20:26 ` [PATCH 2/2] drm/i915/vlv: add VLV specific clock_get function Jesse Barnes
2013-09-20  7:50 ` [PATCH 1/2] drm/i915: only get clock for active pipes Daniel Vetter

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