diff options
author | Eric Anholt <eric@anholt.net> | 2018-06-21 12:54:28 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2018-06-22 13:47:43 -0700 |
commit | 46d8f405e16cdc47962edbe7771246c8d5b8c795 (patch) | |
tree | f3fff8941484ab60dd96714c3f34f84d51d548a8 /drivers/gpu/drm/drm_internal.h | |
parent | 4adc18371f14cf9dfd169d9b8ebdfdaee13c2639 (diff) | |
download | linux-stable-46d8f405e16cdc47962edbe7771246c8d5b8c795.tar.gz linux-stable-46d8f405e16cdc47962edbe7771246c8d5b8c795.tar.bz2 linux-stable-46d8f405e16cdc47962edbe7771246c8d5b8c795.zip |
drm: Consider drivers setting DRIVER_ATOMIC as atomic.
Drivers such as vc4 don't initialize mode_config.funcs until later in
initialization, but we know they're atomic since they've got the flag
set. This avoids oopsing on dereferencing funcs in the new atomic
methods sanity checks.
I moved the atomic check function down below the core flag check, to
avoid needing a prototype.
Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: ba1f665f161c ("drm: Add checks for atomic_[duplicate/destroy]_state with atomic drivers")
Link: https://patchwork.freedesktop.org/patch/msgid/20180621195428.17447-1-eric@anholt.net
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_internal.h')
0 files changed, 0 insertions, 0 deletions