drm: Get atomic property value even if DRIVER_ATOMIC is not set
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Thu, 22 Dec 2016 08:50:43 +0000 (00:50 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 09:44:33 +0000 (10:44 +0100)
commit0bfd4a01a6605849d7c282c37503292469fab0be
treeaab91955f301dce303a2f423f7f8cec0c9ac4da9
parenta743d7582db9aba0e7078d6386bdad2756309dba
drm: Get atomic property value even if DRIVER_ATOMIC is not set

i915 does not set DRIVER_ATOMIC by default yet but uses atomic_check and
atomic_commit. drm_object_property_get_value() does not read the correct
value of atomic properties if DRIVER_ATOMIC is not set. Checking whether
the driver uses atomic modeset is a better check instead as the property
values are tracked in the state structures.

v2: Included header

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1482396643-32456-2-git-send-email-dhinakaran.pandiyan@intel.com
drivers/gpu/drm/drm_mode_object.c