]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/fb-helper: Add drm_fb_helper_defio_init()
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 15 Dec 2017 17:51:17 +0000 (18:51 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 20 Dec 2017 13:52:22 +0000 (14:52 +0100)
commit48c9571c34b153abc1c4f2b431fa74490b671943
tree26ae43819c573a3be597c208e3cb9853edd1de87
parent95b0137f28a420ac02826e674286bc363dd7c196
drm/fb-helper: Add drm_fb_helper_defio_init()

Add helper for initializing fbdev deferred I/O.

The cleanup could have happened in drm_fb_helper_fini(), but that would
have required me to set fb_info->fbdefio to NULL in a couple of drivers
before they call _fini() to avoid double defio cleanup. The problem is
that one of those is vboxvideo which lives in Greg's staging tree.
So I put the cleanup in drm_fb_helper_fbdev_teardown(), not perfect
but not that bad either.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171215175119.36181-6-noralf@tronnes.org
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_fb_helper.h