]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a357679a743486411544eaf3c078e6f00307ab4
tree501dc273e7e642745241713ae68f9939e92fddab
parentb836af5dfda6b1774bcf3a312928f85add7c551c
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