drm/atomic-helper: Do not call ->mode_fixup for CRTC which will be disabled
authorLiu Ying <gnuiyl@gmail.com>
Fri, 27 May 2016 09:35:54 +0000 (17:35 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 30 May 2016 08:44:15 +0000 (10:44 +0200)
commitf55f1701168de914f3d872398d649d330c348f27
tree397ad35cef0a572edac4a54b15ad4a5106bde283
parentc67f69576bba438e69f3d0657e08bdecb4cc2097
drm/atomic-helper: Do not call ->mode_fixup for CRTC which will be disabled

When a CRTC is going to be disabled, it's state may contain a display mode
with zeroed content.  This could be reproduced by HDMI cable hotplug out
operation with legacy fbdev support in dual display cases.  It would confuse
driver's CRTC callback ->mode_fixup and make the total state be rejected.
So, let's don't call the callback for the CRTC.

Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464341754-7087-1-git-send-email-gnuiyl@gmail.com
drivers/gpu/drm/drm_atomic_helper.c