File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ static void intel_dp_set_dpcd_sink_rates(struct intel_dp *intel_dp)
225
225
* Sink rates for 128b/132b. If set, sink should support all 8b/10b
226
226
* rates and 10 Gbps.
227
227
*/
228
- if (intel_dp -> dpcd [ DP_MAIN_LINK_CHANNEL_CODING ] & DP_CAP_ANSI_128B132B ) {
228
+ if (drm_dp_128b132b_supported ( intel_dp -> dpcd ) ) {
229
229
u8 uhbr_rates = 0 ;
230
230
231
231
BUILD_BUG_ON (ARRAY_SIZE (intel_dp -> sink_rates ) < ARRAY_SIZE (dp_rates ) + 3 );
Original file line number Diff line number Diff line change @@ -251,6 +251,12 @@ drm_dp_channel_coding_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
251
251
return dpcd [DP_MAIN_LINK_CHANNEL_CODING ] & DP_CAP_ANSI_8B10B ;
252
252
}
253
253
254
+ static inline bool
255
+ drm_dp_128b132b_supported (const u8 dpcd [DP_RECEIVER_CAP_SIZE ])
256
+ {
257
+ return dpcd [DP_MAIN_LINK_CHANNEL_CODING ] & DP_CAP_ANSI_128B132B ;
258
+ }
259
+
254
260
static inline bool
255
261
drm_dp_alternate_scrambler_reset_cap (const u8 dpcd [DP_RECEIVER_CAP_SIZE ])
256
262
{
You can’t perform that action at this time.
0 commit comments