]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/sun4i: Implement drm_driver lastclose to restore fbdev console
authorJonathan Liu <net147@gmail.com>
Mon, 10 Jul 2017 06:55:04 +0000 (16:55 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2017 08:26:35 +0000 (10:26 +0200)
commitd4ae641cc285e51311124495cde00bf7df9707c4
tree831641b5e333248cf78526bd150b520aa20d173b
parent08353913312acb9620055189d8deea1d4eee0905
drm/sun4i: Implement drm_driver lastclose to restore fbdev console

commit 2a596fc9d974bb040eda9ab70bf8756fcaaa6afe upstream.

The drm_driver lastclose callback is called when the last userspace
DRM client has closed. Call drm_fbdev_cma_restore_mode to restore
the fbdev console otherwise the fbdev console will stop working.

Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support")
Tested-by: Olliver Schinagl <oliver@schinagl.nl>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sun4i/sun4i_drv.c