diff options
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 7 | ||||
-rw-r--r-- | include/drm/drm_atomic.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index a90d67b6310b..37a7fc7649a4 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c | |||
@@ -517,7 +517,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev, | |||
517 | } | 517 | } |
518 | } | 518 | } |
519 | 519 | ||
520 | ret = handle_conflicting_encoders(state, state->legacy_set_config); | 520 | ret = handle_conflicting_encoders(state, false); |
521 | if (ret) | 521 | if (ret) |
522 | return ret; | 522 | return ret; |
523 | 523 | ||
@@ -2289,12 +2289,15 @@ int drm_atomic_helper_set_config(struct drm_mode_set *set, | |||
2289 | if (!state) | 2289 | if (!state) |
2290 | return -ENOMEM; | 2290 | return -ENOMEM; |
2291 | 2291 | ||
2292 | state->legacy_set_config = true; | ||
2293 | state->acquire_ctx = ctx; | 2292 | state->acquire_ctx = ctx; |
2294 | ret = __drm_atomic_helper_set_config(set, state); | 2293 | ret = __drm_atomic_helper_set_config(set, state); |
2295 | if (ret != 0) | 2294 | if (ret != 0) |
2296 | goto fail; | 2295 | goto fail; |
2297 | 2296 | ||
2297 | ret = handle_conflicting_encoders(state, true); | ||
2298 | if (ret) | ||
2299 | return ret; | ||
2300 | |||
2298 | ret = drm_atomic_commit(state); | 2301 | ret = drm_atomic_commit(state); |
2299 | 2302 | ||
2300 | fail: | 2303 | fail: |
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index fd33ed5eaeb4..788daf756f48 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h | |||
@@ -160,7 +160,6 @@ struct __drm_connnectors_state { | |||
160 | * @dev: parent DRM device | 160 | * @dev: parent DRM device |
161 | * @allow_modeset: allow full modeset | 161 | * @allow_modeset: allow full modeset |
162 | * @legacy_cursor_update: hint to enforce legacy cursor IOCTL semantics | 162 | * @legacy_cursor_update: hint to enforce legacy cursor IOCTL semantics |
163 | * @legacy_set_config: Disable conflicting encoders instead of failing with -EINVAL. | ||
164 | * @planes: pointer to array of structures with per-plane data | 163 | * @planes: pointer to array of structures with per-plane data |
165 | * @crtcs: pointer to array of CRTC pointers | 164 | * @crtcs: pointer to array of CRTC pointers |
166 | * @num_connector: size of the @connectors and @connector_states arrays | 165 | * @num_connector: size of the @connectors and @connector_states arrays |
@@ -173,7 +172,6 @@ struct drm_atomic_state { | |||
173 | struct drm_device *dev; | 172 | struct drm_device *dev; |
174 | bool allow_modeset : 1; | 173 | bool allow_modeset : 1; |
175 | bool legacy_cursor_update : 1; | 174 | bool legacy_cursor_update : 1; |
176 | bool legacy_set_config : 1; | ||
177 | struct __drm_planes_state *planes; | 175 | struct __drm_planes_state *planes; |
178 | struct __drm_crtcs_state *crtcs; | 176 | struct __drm_crtcs_state *crtcs; |
179 | int num_connector; | 177 | int num_connector; |