Skip to content

Commit

Permalink
drm: rockchip: Turn off VT switching on suspend
Browse files Browse the repository at this point in the history
drm/rockchip already has support for disabling all displays on suspend
and enabling them on resume.

Disable automatic VT switching on suspend by the pm console tracking
layer.

Tested on veyron, used `echo mem > sys/power/state`
  => verified no VT switch

Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
  • Loading branch information
Caesar Wang authored and Mark Yao committed Apr 3, 2015
1 parent d3007da commit b340b3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ static int rockchip_drm_fbdev_create(struct drm_fb_helper *helper,
DRM_DEBUG_KMS("FB [%dx%d]-%d kvaddr=%p offset=%ld size=%d\n",
fb->width, fb->height, fb->depth, rk_obj->kvaddr,
offset, size);

fbi->skip_vt_switch = true;

return 0;

err_drm_framebuffer_unref:
Expand Down

0 comments on commit b340b3f

Please sign in to comment.