i915: Fix SDVO potentially turning off randomly
Subsystems (2)
PATCH 1/1 i915: Fix SDVO potentially turning off randomly
Some Poulsbo cards seem to incorrectly report SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED instead of SDVO_CMD_STATUS_PENDING, which causes the display to be turned off.
This could also happen to i915.
Signed-off-by Guillaume Clement <[email protected]>
--- drivers/gpu/drm/i915/intel_sdvo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_sdvo.c +2 -1
@@ -539,7 +539,8 @@ static bool intel_sdvo_read_response(struct intel_sdvo *intel_sdvo, &status)) goto log_fail; -while (status ==SDVO_CMD_STATUS_PENDING && --retry) { +while ((status ==SDVO_CMD_STATUS_PENDING || + status ==SDVO_CMD_STATUS_TARGET_NOT_SPECIFIED ) && --retry) {if (retry <10 )msleep (15 );else
Signature · 1 line
1.8.1.5
Daniel Vetter
AppliedQuoted 5 lines · Guillaume Clement
Some Poulsbo cards seem to incorrectly report
SDVO_CMD_STATUS_TARGET_NOT_SPECIFIEDinstead ofSDVO_CMD_STATUS_PENDING, which causes the display to be turned off.This could also happen to i915.
Signed-off-by Guillaume Clement <[email protected]>
Queued for -next, thanks for the patch. Let's see whether we're lucky and this fixes something ;-)
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch