drm/i915: Clarify logic for initial modeset
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Jul 2015 12:15:51 +0000 (14:15 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Jul 2015 15:18:19 +0000 (17:18 +0200)
commit1ed51de9ca9170d1c5361924a17e7c483050aeb6
tree489755f33ba330ab375d68c22c3452b558a80d2d
parente2ff2d4a467511ef88ae574555ddc0e952777f0c
drm/i915: Clarify logic for initial modeset

Currently we both set mode->private_flags to some value and also use
the pipe_config quirk. But since the pipe_config quirk isn't tied to
the lifetime of the mode object we need to check both.

Simplify this by only using mode.private_flags and stop using the
INHERITED_MODE quirk. Also for clarity add an explicit #define for
that driver priavete mode flag.

By using crtc_state->mode_changed we can also remove the recalc local
variable.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h