]> asedeno.scripts.mit.edu Git - linux.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)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 17 Jul 2017 06:22:03 +0000 (08:22 +0200)
commit2a596fc9d974bb040eda9ab70bf8756fcaaa6afe
treefe1a4c04db9783649f5ee2efc8e9483b0a1b30c7
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
drm/sun4i: Implement drm_driver lastclose to restore fbdev console

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")
Cc: stable@vger.kernel.org
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>
drivers/gpu/drm/sun4i/sun4i_drv.c