aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_drv.c
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2019-06-14 20:35:21 +0000
committerDaniel Vetter <[email protected]>2019-06-21 09:48:09 +0000
commitee8375d5dc5bbb50b03bedfb0020d3e1c27ceacb (patch)
tree719630d7c2c87852e68bf18434a0c6b1e92a9a06 /drivers/gpu/drm/lima/lima_drv.c
parentdrm/prime: Unconditionally set up the prime file private (diff)
downloadkernel-ee8375d5dc5bbb50b03bedfb0020d3e1c27ceacb.tar.gz
kernel-ee8375d5dc5bbb50b03bedfb0020d3e1c27ceacb.zip
drm/prime: Make DRIVER_PRIME a no-op
Drivers must fill out the handle_to_fd and fd_to_handle hooks to enable export/import prime functionality already. The additional DRIVER_PRIME flag doesn't serve any real purpose, since the overall flag doesn't even tell you whether import or export or maybe even both is supported. Ditch it. This patch just makes it defunct, subsequent patches will remove it from all the drivers. Note this changes the userspace visible errno in some situations from EOPNOTSUPP to ENOSYS. Userspace already needs to treat both as "no prime support", so this should break anything. v2: Improve commit message as suggested by Emil Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_drv.c')
0 files changed, 0 insertions, 0 deletions