Skip to content

Commit 4e5e384

Browse files
committed
Merge tag 'drm-intel-fixes-2016-01-02' of git://anongit.freedesktop.org/drm-intel
Pull i915 drm fixes from Jani Nikula: "Two display fixes still for v4.4. The new year's resolution is to start using signed tags per Linus' request. This one is still unsigned; I want to fix this up in our maintainer scripts instead of doing it one-off" * tag 'drm-intel-fixes-2016-01-02' of git://anongit.freedesktop.org/drm-intel: drm/i915: increase the tries for HDMI hotplug live status checking drm/i915: Unbreak check_digital_port_conflicts()
2 parents 9c982e8 + 3d8acd1 commit 4e5e384

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12123,18 +12123,22 @@ static void intel_dump_pipe_config(struct intel_crtc *crtc,
1212312123
static bool check_digital_port_conflicts(struct drm_atomic_state *state)
1212412124
{
1212512125
struct drm_device *dev = state->dev;
12126-
struct intel_encoder *encoder;
1212712126
struct drm_connector *connector;
12128-
struct drm_connector_state *connector_state;
1212912127
unsigned int used_ports = 0;
12130-
int i;
1213112128

1213212129
/*
1213312130
* Walk the connector list instead of the encoder
1213412131
* list to detect the problem on ddi platforms
1213512132
* where there's just one encoder per digital port.
1213612133
*/
12137-
for_each_connector_in_state(state, connector, connector_state, i) {
12134+
drm_for_each_connector(connector, dev) {
12135+
struct drm_connector_state *connector_state;
12136+
struct intel_encoder *encoder;
12137+
12138+
connector_state = drm_atomic_get_existing_connector_state(state, connector);
12139+
if (!connector_state)
12140+
connector_state = connector->state;
12141+
1213812142
if (!connector_state->best_encoder)
1213912143
continue;
1214012144

drivers/gpu/drm/i915/intel_hdmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ intel_hdmi_detect(struct drm_connector *connector, bool force)
13811381

13821382
intel_display_power_get(dev_priv, POWER_DOMAIN_GMBUS);
13831383

1384-
for (try = 0; !live_status && try < 4; try++) {
1384+
for (try = 0; !live_status && try < 9; try++) {
13851385
if (try)
13861386
msleep(10);
13871387
live_status = intel_digital_port_connected(dev_priv,

0 commit comments

Comments
 (0)