[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2015-01-17 Thread Thierry Reding
On January 17, 2015 4:48:53 AM Daniel Vetter wrote: > On Fri, Jan 16, 2015 at 03:53:04PM +0100, Thierry Reding wrote: > > On Fri, Jan 16, 2015 at 03:35:10PM +0100, Thierry Reding wrote: > > > On Tue, Nov 25, 2014 at 01:26:34PM +0100, Daniel Vetter wrote: > > > > On Tue, Nov 25, 2014 at 12:57:04PM

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2015-01-17 Thread Daniel Vetter
On Fri, Jan 16, 2015 at 03:53:04PM +0100, Thierry Reding wrote: > On Fri, Jan 16, 2015 at 03:35:10PM +0100, Thierry Reding wrote: > > On Tue, Nov 25, 2014 at 01:26:34PM +0100, Daniel Vetter wrote: > > > On Tue, Nov 25, 2014 at 12:57:04PM +0100, Thierry Reding wrote: > > > > On Tue, Nov 25, 2014 at

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2015-01-16 Thread Thierry Reding
On Fri, Jan 16, 2015 at 03:35:10PM +0100, Thierry Reding wrote: > On Tue, Nov 25, 2014 at 01:26:34PM +0100, Daniel Vetter wrote: > > On Tue, Nov 25, 2014 at 12:57:04PM +0100, Thierry Reding wrote: > > > On Tue, Nov 25, 2014 at 12:45:46PM +0100, Thierry Reding wrote: > > > > On Tue, Nov 25, 2014 at

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2015-01-16 Thread Thierry Reding
On Tue, Nov 25, 2014 at 01:26:34PM +0100, Daniel Vetter wrote: > On Tue, Nov 25, 2014 at 12:57:04PM +0100, Thierry Reding wrote: > > On Tue, Nov 25, 2014 at 12:45:46PM +0100, Thierry Reding wrote: > > > On Tue, Nov 25, 2014 at 12:22:34PM +0100, Daniel Vetter wrote: > > > > On Tue, Nov 25, 2014 at 1

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2014-11-25 Thread Daniel Vetter
On Tue, Nov 25, 2014 at 12:45:46PM +0100, Thierry Reding wrote: > On Tue, Nov 25, 2014 at 12:22:34PM +0100, Daniel Vetter wrote: > > On Tue, Nov 25, 2014 at 12:09:46PM +0100, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > In order to prevent drivers from having to perform the same c

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2014-11-25 Thread Daniel Vetter
On Tue, Nov 25, 2014 at 12:57:04PM +0100, Thierry Reding wrote: > On Tue, Nov 25, 2014 at 12:45:46PM +0100, Thierry Reding wrote: > > On Tue, Nov 25, 2014 at 12:22:34PM +0100, Daniel Vetter wrote: > > > On Tue, Nov 25, 2014 at 12:09:46PM +0100, Thierry Reding wrote: > [...] > > > > +/* > > > > + *

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2014-11-25 Thread Thierry Reding
On Tue, Nov 25, 2014 at 12:45:46PM +0100, Thierry Reding wrote: > On Tue, Nov 25, 2014 at 12:22:34PM +0100, Daniel Vetter wrote: > > On Tue, Nov 25, 2014 at 12:09:46PM +0100, Thierry Reding wrote: [...] > > > +/* > > > + * drm_plane_disabled - check whether a plane is being disabled > > > + * @plan

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2014-11-25 Thread Thierry Reding
On Tue, Nov 25, 2014 at 12:22:34PM +0100, Daniel Vetter wrote: > On Tue, Nov 25, 2014 at 12:09:46PM +0100, Thierry Reding wrote: > > From: Thierry Reding > > > > In order to prevent drivers from having to perform the same checks over > > and over again, add an optional ->atomic_disable callback w

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2014-11-25 Thread Daniel Vetter
On Tue, Nov 25, 2014 at 12:09:46PM +0100, Thierry Reding wrote: > From: Thierry Reding > > In order to prevent drivers from having to perform the same checks over > and over again, add an optional ->atomic_disable callback which the core > calls under the right circumstances. > > v2: pass old st

[PATCH v2 3/6] drm/plane: Add optional ->atomic_disable() callback

2014-11-25 Thread Thierry Reding
From: Thierry Reding In order to prevent drivers from having to perform the same checks over and over again, add an optional ->atomic_disable callback which the core calls under the right circumstances. v2: pass old state and detect edges to avoid calling ->atomic_disable on already disabled pla