File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -2374,6 +2374,19 @@ dsi_dvo_port_to_port(struct drm_i915_private *i915, u8 dvo_port)
2374
2374
}
2375
2375
}
2376
2376
2377
+ static enum port intel_bios_encoder_port (const struct intel_bios_encoder_data * devdata )
2378
+ {
2379
+ struct drm_i915_private * i915 = devdata -> i915 ;
2380
+ const struct child_device_config * child = & devdata -> child ;
2381
+ enum port port ;
2382
+
2383
+ port = dvo_port_to_port (i915 , child -> dvo_port );
2384
+ if (port == PORT_NONE && DISPLAY_VER (i915 ) >= 11 )
2385
+ port = dsi_dvo_port_to_port (i915 , child -> dvo_port );
2386
+
2387
+ return port ;
2388
+ }
2389
+
2377
2390
static int parse_bdb_230_dp_max_link_rate (const int vbt_max_link_rate )
2378
2391
{
2379
2392
switch (vbt_max_link_rate ) {
@@ -2613,12 +2626,9 @@ static void print_ddi_port(const struct intel_bios_encoder_data *devdata,
2613
2626
static void parse_ddi_port (struct intel_bios_encoder_data * devdata )
2614
2627
{
2615
2628
struct drm_i915_private * i915 = devdata -> i915 ;
2616
- const struct child_device_config * child = & devdata -> child ;
2617
2629
enum port port ;
2618
2630
2619
- port = dvo_port_to_port (i915 , child -> dvo_port );
2620
- if (port == PORT_NONE && DISPLAY_VER (i915 ) >= 11 )
2621
- port = dsi_dvo_port_to_port (i915 , child -> dvo_port );
2631
+ port = intel_bios_encoder_port (devdata );
2622
2632
if (port == PORT_NONE )
2623
2633
return ;
2624
2634
You can’t perform that action at this time.
0 commit comments