diff options
author | Keith Packard <keithp@keithp.com> | 2009-06-05 21:19:56 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-09 18:20:55 -0400 |
commit | 03d6069912babc07a3da20e715dd6a5dc8f0f867 (patch) | |
tree | f12ea01a80573b4bd88a30b7da44ec1012f371be /drivers/gpu | |
parent | 2939e1f5331455d17a4a704dd6210e1474002545 (diff) |
drm/i915: Hook connector to encoder during load detection (fixes tv/vga detect)
With the DRM-driven DPMS code, encoders are considered idle unless a
connector is hooked to them, so mode setting is skipped. This makes load
detection fail as none of the hardware is enabled.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index a87eeffc2c8d..b32a51f2a91d 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -2136,6 +2136,7 @@ struct drm_crtc *intel_get_load_detect_pipe(struct intel_output *intel_output, | |||
2136 | } | 2136 | } |
2137 | 2137 | ||
2138 | encoder->crtc = crtc; | 2138 | encoder->crtc = crtc; |
2139 | intel_output->base.encoder = encoder; | ||
2139 | intel_output->load_detect_temp = true; | 2140 | intel_output->load_detect_temp = true; |
2140 | 2141 | ||
2141 | intel_crtc = to_intel_crtc(crtc); | 2142 | intel_crtc = to_intel_crtc(crtc); |
@@ -2171,6 +2172,7 @@ void intel_release_load_detect_pipe(struct intel_output *intel_output, int dpms_ | |||
2171 | 2172 | ||
2172 | if (intel_output->load_detect_temp) { | 2173 | if (intel_output->load_detect_temp) { |
2173 | encoder->crtc = NULL; | 2174 | encoder->crtc = NULL; |
2175 | intel_output->base.encoder = NULL; | ||
2174 | intel_output->load_detect_temp = false; | 2176 | intel_output->load_detect_temp = false; |
2175 | crtc->enabled = drm_helper_crtc_in_use(crtc); | 2177 | crtc->enabled = drm_helper_crtc_in_use(crtc); |
2176 | drm_helper_disable_unused_functions(dev); | 2178 | drm_helper_disable_unused_functions(dev); |