drm/fb-helper: reject any changes to the fbdev
authorStefan Agner <stefan@agner.ch>
Tue, 11 Oct 2016 23:15:04 +0000 (16:15 -0700)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 15 Aug 2018 02:36:08 +0000 (19:36 -0700)
commit200f9423e76e1c7f5350ef1b4290541c050d19d4
tree1445f5b4151288406811c5aff34a89e8af5e5ad3
parented6b105ede3249ff3b22e86ac579a8b225ba9ea9
drm/fb-helper: reject any changes to the fbdev

The current fbdev emulation does not allow to push back changes in
width, height or depth to KMS, hence reject any changes with an
error. This makes sure that fbdev ioctl's fail properly and user
space does not assume that changes succeeded.

Change-Id: Iaefb728b04d4599ef5bd6f32b37dd9dcab830989
Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161011231504.17688-1-stefan@agner.ch
drivers/gpu/drm/drm_fb_helper.c