drm/nouveau/kms: prepare to support legacy connector set_property with atomic
authorBen Skeggs <bskeggs@redhat.com>
Fri, 4 Nov 2016 07:20:35 +0000 (17:20 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:04:48 +0000 (14:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c

index 705c700fdeefb2ecce6396e9c28c283cb9861b72..794b161c889c38d1ea34bd332bf458d920d035f1 100644 (file)
@@ -768,6 +768,9 @@ nouveau_connector_set_property(struct drm_connector *connector,
        struct nouveau_crtc *nv_crtc = NULL;
        int ret;
 
+       if (connector->dev->mode_config.funcs->atomic_commit)
+               return drm_atomic_helper_connector_set_property(connector, property, value);
+
        ret = connector->funcs->atomic_set_property(&nv_connector->base,
                                                    &asyc->state,
                                                    property, value);