Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329413
b: refs/heads/master
c: 6d832d1
h: refs/heads/master
i:
  329411: 6482131
v: v3
  • Loading branch information
Daniel Vetter committed Sep 6, 2012
1 parent 03251c8 commit 119f186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f660f49b9d68e53d85f5ce4f5bbf167257e7fc2
refs/heads/master: 6d832d189bb671cfa2c681d97625bab2d6463c66
18 changes: 3 additions & 15 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -6644,7 +6644,7 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
bool mode_changed = false; /* if true do a full mode set */
bool fb_changed = false; /* if true and !mode_changed just do a flip */
struct drm_connector *save_connectors, *connector;
int count = 0, ro, fail = 0;
int count = 0, ro;
struct drm_mode_set save_set;
int ret;
int i;
Expand All @@ -6660,7 +6660,6 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
if (!set->crtc->helper_private)
return -EINVAL;


if (!set->mode)
set->fb = NULL;

Expand Down Expand Up @@ -6753,17 +6752,11 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
/* a) traverse passed in connector list and get encoders for them */
count = 0;
list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
struct drm_connector_helper_funcs *connector_funcs =
connector->helper_private;
new_encoder = connector->encoder;
for (ro = 0; ro < set->num_connectors; ro++) {
if (set->connectors[ro] == connector) {
new_encoder = connector_funcs->best_encoder(connector);
/* if we can't get an encoder for a connector
we are setting now - then fail */
if (new_encoder == NULL)
/* don't break so fail path works correct */
fail = 1;
new_encoder =
&intel_attached_encoder(connector)->base;
break;
}
}
Expand All @@ -6780,11 +6773,6 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
}
}

if (fail) {
ret = -EINVAL;
goto fail;
}

count = 0;
list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
if (!connector->encoder)
Expand Down

0 comments on commit 119f186

Please sign in to comment.