]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fb_helper: Disable all crtc's when initial setup fails.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 28 Nov 2017 11:16:03 +0000 (12:16 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 29 Nov 2017 14:37:31 +0000 (15:37 +0100)
commit051c863bc071a07890ae1d91d5f6e654fd892b90
tree1f93399658bbb22874bb0efff6a5c26ec61868e3
parentf772ac9596d019e334df33ff75432d88f66917ea
drm/fb_helper: Disable all crtc's when initial setup fails.

Some drivers like i915 start with crtc's enabled, but with deferred
fbcon setup they were no longer disabled as part of fbdev setup.
Headless units could no longer enter pc3 state because the crtc was
still enabled.

Fix this by calling restore_fbdev_mode when we would have called
it otherwise once during initial fbdev setup.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: 44f86aee1a12 ("drm/fb-helper: Support deferred setup")
Cc: <stable@vger.kernel.org> # v4.14+
Reported-by: Thomas Voegtle <tv@lio96.de>
Tested-by: Thomas Voegtle <tv@lio96.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171128111603.62757-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_fb_helper.c