drm/ast: Replace struct ast_fbdev with generic framebuffer emulation
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Jul 2019 07:58:27 +0000 (09:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 9 Jul 2019 08:25:12 +0000 (10:25 +0200)
commit8a99de3dc0dd417e1f46c8e27e63b1363ecfb969
tree501dc273e7e642745241713ae68f9939e92fddab
parentf458579ede0b721418f7fc9f0eb624ca058ea0ea
drm/ast: Replace struct ast_fbdev with generic framebuffer emulation

This patch replaces ast's framebuffer console with DRM's generic
implememtation. All respective code is being removed from the driver.

The console is set up with a shadow buffer. The actual buffer object is
not permanently pinned in video ram, but just another buffer object that
the driver moves in and out of vram as necessary. The driver's function
ast_crtc_do_set_base() used to contain special handling for the framebuffer
console. With the new generic framebuffer, the driver does not need this
code an longer.

v2:
* use drm_fb_helper_set_suspend_unlocked() in ast_drm_{thaw,freeze}()
* dirty function no longer required

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/315835/
drivers/gpu/drm/ast/Makefile
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_fb.c [deleted file]
drivers/gpu/drm/ast/ast_main.c
drivers/gpu/drm/ast/ast_mode.c