]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Don't set crtc_state->enable manually
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 22 Jun 2015 10:37:46 +0000 (13:37 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jun 2015 11:45:33 +0000 (13:45 +0200)
commit7eb5af8becab51f082dc37615105cac80f636f49
tree13e054921779dcef702c0fe199342ca7dabb55bc
parent2723539712c081be4fd160a5e1a71120c68fd6c3
drm/atomic: Don't set crtc_state->enable manually

The enable field needs to be kept in sync with the mode_blob field. Call
drm_atomic_set_mode_prop_for_crtc() instead of setting enable to false
in order to dereference the mode blob correctly.

v2:
- Check the return value of drm_atomic_set_mode_prop_for_crtc()
- Drop the num_connectors local variable

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c