drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 18 Sep 2018 17:48:09 +0000 (10:48 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 21 Sep 2018 09:19:40 +0000 (11:19 +0200)
commitadbc8208e6620ddfa10fd863cb0a4ec0c54d8625
tree489c50ed390f4f517d3c891a972c4bd7c0f5e139
parent14e86c01413ed4cb69525e5eb60731d03ea7630c
drm: Return -EOPNOTSUPP in drm_setclientcap() when driver do not support KMS

All DRM_CLIENT capabilities are tied to KMS support, so returning
-EOPNOTSUPP when KMS is not supported.

v2: returning -EOPNOTSUPP(same value as posix ENOTSUP and available
in uapi) instead of -ENOTSUPP

v3: adding comments about the feature requirement about capabilities

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180918174809.17123-1-jose.souza@intel.com
drivers/gpu/drm/drm_ioctl.c