[Intel-gfx] [PATCH 3/4] drm/i915: Return zero as the scanline counter for disabled pipes
Ville Syrjala
ville.syrjala at linux.intel.com
Thu Mar 4 17:04:20 UTC 2021
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
We print the scanline counters as unsigned integers so the -1
here just makes the debugs/traces look a bit messy. Zero seems
equally valid for this usecase.
Cc: Steven Rostedt <rostedt at goodmis.org>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/i915_irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 01c409005f6f..44aed4cbf894 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -794,7 +794,7 @@ static int __intel_get_crtc_scanline(struct intel_crtc *crtc)
int position, vtotal;
if (!crtc->active)
- return -1;
+ return 0;
vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)];
mode = &vblank->hwmode;
--
2.26.2
More information about the Intel-gfx
mailing list