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:
cda0aaa
)
drm/i915: Use intel_pipe_will_have_type() in ironlake_crtc_compute_clock()
author
Ville Syrjälä
<
[email protected]
>
Wed, 25 Nov 2015 14:35:30 +0000
(16:35 +0200)
committer
Ville Syrjälä
<
[email protected]
>
Tue, 1 Dec 2015 14:03:51 +0000
(16:03 +0200)
ironlake_crtc_compute_clock() gets called during atomic compute phase,
so we must check the future pipe type instead of the current type.
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index b3323262d9cd70919ec468368cc1e21efa4f461c..598a6adbe1da35e1babd69666d11743f32f386a6 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_display.c
+++ b/
drivers/gpu/drm/i915/intel_display.c
@@
-8932,7
+8932,7
@@
static int ironlake_crtc_compute_clock(struct intel_crtc *crtc,
memset(&crtc_state->dpll_hw_state, 0,
sizeof(crtc_state->dpll_hw_state));
- is_lvds = intel_pipe_
has_type(crtc
, INTEL_OUTPUT_LVDS);
+ is_lvds = intel_pipe_
will_have_type(crtc_state
, INTEL_OUTPUT_LVDS);
WARN(!(HAS_PCH_IBX(dev) || HAS_PCH_CPT(dev)),
"Unexpected PCH type %d\n", INTEL_PCH_TYPE(dev));