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

Commit af6da31e authored by Laurent Pinchart's avatar Laurent Pinchart
Browse files

drm: omapdrm: Don't flush CRTC when enabling or disabling it



The omap_crtc_flush() call in omap_crtc_enable() and omap_crtc_disable()
is a no-op, as the display manager is always disabled at this point. Just
remove the function call.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 4029755e
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -405,8 +405,6 @@ static void omap_crtc_enable(struct drm_crtc *crtc)
			WARN_ON(omap_plane_setup(plane));
			WARN_ON(omap_plane_setup(plane));
	}
	}


	omap_crtc_flush(crtc);

	drm_crtc_vblank_on(crtc);
	drm_crtc_vblank_on(crtc);
}
}


@@ -428,8 +426,6 @@ static void omap_crtc_disable(struct drm_crtc *crtc)
		if (plane->crtc == crtc)
		if (plane->crtc == crtc)
			WARN_ON(omap_plane_setup(plane));
			WARN_ON(omap_plane_setup(plane));
	}
	}

	omap_crtc_flush(crtc);
}
}


static void omap_crtc_mode_set_nofb(struct drm_crtc *crtc)
static void omap_crtc_mode_set_nofb(struct drm_crtc *crtc)