Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8766ac5 authored by Linus Torvalds's avatar Linus Torvalds Committed by Dave Airlie
Browse files

drm: Fix shifts of EDID vsync offset/width fields.

parent 37df9673
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -320,10 +320,10 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
	mode->htotal = mode->hdisplay + ((pt->hblank_hi << 8) | pt->hblank_lo);

	mode->vdisplay = (pt->vactive_hi << 8) | pt->vactive_lo;
	mode->vsync_start = mode->vdisplay + ((pt->vsync_offset_hi << 8) |
	mode->vsync_start = mode->vdisplay + ((pt->vsync_offset_hi << 4) |
					      pt->vsync_offset_lo);
	mode->vsync_end = mode->vsync_start +
		((pt->vsync_pulse_width_hi << 8) |
		((pt->vsync_pulse_width_hi << 4) |
		 pt->vsync_pulse_width_lo);
	mode->vtotal = mode->vdisplay + ((pt->vblank_hi << 8) | pt->vblank_lo);