File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
drivers/gpu/drm/amd/display/dc Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -248,14 +248,12 @@ void dcn32_link_encoder_construct(
248
248
enc10 -> base .hpd_source = init_data -> hpd_source ;
249
249
enc10 -> base .connector = init_data -> connector ;
250
250
251
- enc10 -> base .preferred_engine = ENGINE_ID_UNKNOWN ;
252
-
253
- enc10 -> base .features = * enc_features ;
254
251
if (enc10 -> base .connector .id == CONNECTOR_ID_USBC )
255
252
enc10 -> base .features .flags .bits .DP_IS_USB_C = 1 ;
256
253
257
- if (enc10 -> base .connector .id == CONNECTOR_ID_USBC )
258
- enc10 -> base .features .flags .bits .DP_IS_USB_C = 1 ;
254
+ enc10 -> base .preferred_engine = ENGINE_ID_UNKNOWN ;
255
+
256
+ enc10 -> base .features = * enc_features ;
259
257
260
258
enc10 -> base .transmitter = init_data -> transmitter ;
261
259
Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ void dcn35_link_encoder_construct(
184
184
enc10 -> base .hpd_source = init_data -> hpd_source ;
185
185
enc10 -> base .connector = init_data -> connector ;
186
186
187
+ if (enc10 -> base .connector .id == CONNECTOR_ID_USBC )
188
+ enc10 -> base .features .flags .bits .DP_IS_USB_C = 1 ;
187
189
188
190
enc10 -> base .preferred_engine = ENGINE_ID_UNKNOWN ;
189
191
@@ -238,8 +240,6 @@ void dcn35_link_encoder_construct(
238
240
}
239
241
240
242
enc10 -> base .features .flags .bits .HDMI_6GB_EN = 1 ;
241
- if (enc10 -> base .connector .id == CONNECTOR_ID_USBC )
242
- enc10 -> base .features .flags .bits .DP_IS_USB_C = 1 ;
243
243
244
244
if (bp_funcs -> get_connector_speed_cap_info )
245
245
result = bp_funcs -> get_connector_speed_cap_info (enc10 -> base .ctx -> dc_bios ,
You can’t perform that action at this time.
0 commit comments