]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation
authorLyude Paul <lyude@redhat.com>
Mon, 17 Sep 2018 17:37:33 +0000 (13:37 -0400)
committerLyude Paul <lyude@redhat.com>
Mon, 17 Sep 2018 23:24:37 +0000 (19:24 -0400)
commit8bbb09e07aafd6fc2956db80559df7775ec469dd
tree71fcdb65993bde73abd9c8746ea7d4bb7e6ff073
parentdd8e286e09855df02e922537fc1462bfa24ad73f
drm/atomic: Use drm_drv_uses_atomic_modeset() for debugfs creation

As pointed out by Daniel Vetter, we should be usinng
drm_drv_uses_atomic_modeset() for determining whether or not we want to
make the debugfs nodes for atomic instead of checking DRIVER_ATOMIC, as
the former isn't an accurate representation of whether or not the driver
is actually using atomic modesetting internally (even though it might
not be exposing atomic capabilities).

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180917173733.21293-1-lyude@redhat.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_debugfs.c