[PATCH 4/8] drm/sti: fix atomic_disable check

2016-09-15 Thread Vincent ABRIOU
Acked-by: Vincent Abriou On 09/15/2016 03:41 PM, Fabien Dessenne wrote: > When a drm_plane is being disabled, its ->crtc member is set to NULL > before the .atomic_disable() func is called. > To get the crtc of the plane, read old_state->crtc instead of > drm_plane->crtc > > Signed-off-by: Fabie

[PATCH 4/8] drm/sti: fix atomic_disable check

2016-09-15 Thread Fabien Dessenne
When a drm_plane is being disabled, its ->crtc member is set to NULL before the .atomic_disable() func is called. To get the crtc of the plane, read old_state->crtc instead of drm_plane->crtc Signed-off-by: Fabien Dessenne --- drivers/gpu/drm/sti/sti_cursor.c | 6 +++--- drivers/gpu/drm/sti/sti_