Skip to content

Commit b22960b

Browse files
Chandan Uddarajurobclark
authored andcommitted
drm: add constant N value in helper file
The constant N value (0x8000) is used by i915 DP driver. Define this value in dp helper header file to use in multiple Display Port drivers. Change i915 driver accordingly. Change in v6: Change commit message Signed-off-by: Chandan Uddaraju <[email protected]> Signed-off-by: Vara Reddy <[email protected]> Signed-off-by: Tanmay Shah <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Acked-by: Jani Nikula <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 2fb7487 commit b22960b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8114,7 +8114,7 @@ static void compute_m_n(unsigned int m, unsigned int n,
81148114
* which the devices expect also in synchronous clock mode.
81158115
*/
81168116
if (constant_n)
8117-
*ret_n = 0x8000;
8117+
*ret_n = DP_LINK_CONSTANT_N_VALUE;
81188118
else
81198119
*ret_n = min_t(unsigned int, roundup_pow_of_two(n), DATA_LINK_N_MAX);
81208120

include/drm/drm_dp_helper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@
11341134
#define DP_MST_PHYSICAL_PORT_0 0
11351135
#define DP_MST_LOGICAL_PORT_0 8
11361136

1137+
#define DP_LINK_CONSTANT_N_VALUE 0x8000
11371138
#define DP_LINK_STATUS_SIZE 6
11381139
bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
11391140
int lane_count);

0 commit comments

Comments
 (0)