drm/i915: Don't manually add connectors and planes state
authorJosé Roberto de Souza <jose.souza@intel.com>
Sat, 2 Mar 2019 00:33:48 +0000 (16:33 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 4 Mar 2019 22:41:59 +0000 (14:41 -0800)
commit3e5ebcddd1031aa6bb91beca46ceaff80b24e4f6
treec58f9dee0268db52c5204ef92d8dc64ff28fd63b
parenta551cd66bc0a15ba00433743094c2453e1ee7aa9
drm/i915: Don't manually add connectors and planes state

drm_atomic_commit() call chain already takes care of adding
connectors and planes, so lets no add then manually if not changing
their states.

drm_atomic_commit()
        drm_atomic_check_only()
                config->funcs->atomic_check()/intel_atomic_check()
                        drm_atomic_helper_check()
                                drm_atomic_helper_check_modeset()
                                        for_each_oldnew_crtc_in_state()
                                                drm_atomic_add_affected_connectors()
                                                drm_atomic_add_affected_planes()

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190302003349.19189-2-jose.souza@intel.com
drivers/gpu/drm/i915/intel_ddi.c