Rev 6937 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6937 | Rev 7144 | ||
---|---|---|---|
Line 171... | Line 171... | ||
171 | 171 | ||
172 | DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links); |
172 | DRM_DEBUG_KMS("%d\n", intel_dp->active_mst_links); |
Line 173... | Line 173... | ||
173 | intel_mst->port = found->port; |
173 | intel_mst->port = found->port; |
- | 174 | ||
- | 175 | if (intel_dp->active_mst_links == 0) { |
|
174 | 176 | intel_prepare_ddi_buffer(&intel_dig_port->base); |
|
Line 175... | Line 177... | ||
175 | if (intel_dp->active_mst_links == 0) { |
177 | |
Line 176... | Line 178... | ||
176 | intel_ddi_clk_select(&intel_dig_port->base, intel_crtc->config); |
178 | intel_ddi_clk_select(&intel_dig_port->base, intel_crtc->config); |
Line 345... | Line 347... | ||
345 | 347 | ||
346 | static enum drm_mode_status |
348 | static enum drm_mode_status |
347 | intel_dp_mst_mode_valid(struct drm_connector *connector, |
349 | intel_dp_mst_mode_valid(struct drm_connector *connector, |
348 | struct drm_display_mode *mode) |
350 | struct drm_display_mode *mode) |
- | 351 | { |
|
- | 352 | int max_dotclk = to_i915(connector->dev)->max_dotclk_freq; |
|
349 | { |
353 | |
350 | /* TODO - validate mode against available PBN for link */ |
354 | /* TODO - validate mode against available PBN for link */ |
351 | if (mode->clock < 10000) |
355 | if (mode->clock < 10000) |
Line 352... | Line 356... | ||
352 | return MODE_CLOCK_LOW; |
356 | return MODE_CLOCK_LOW; |
353 | 357 | ||
Line -... | Line 358... | ||
- | 358 | if (mode->flags & DRM_MODE_FLAG_DBLCLK) |
|
- | 359 | return MODE_H_ILLEGAL; |
|
- | 360 | ||
354 | if (mode->flags & DRM_MODE_FLAG_DBLCLK) |
361 | if (mode->clock > max_dotclk) |
355 | return MODE_H_ILLEGAL; |
362 | return MODE_CLOCK_HIGH; |
Line 356... | Line 363... | ||
356 | 363 | ||
357 | return MODE_OK; |
364 | return MODE_OK; |