mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
drm/rockchip: dw-dp: Add DP PHY max_link_rate limit
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> Change-Id: I2f4522af3b997cb0c3a6209bbe142e550782e2fc
This commit is contained in:
@@ -871,7 +871,8 @@ static int dw_dp_link_probe(struct dw_dp *dp)
|
||||
!!(dpcd & DP_VSC_SDP_EXT_FOR_COLORIMETRY_SUPPORTED);
|
||||
|
||||
link->revision = link->dpcd[DP_DPCD_REV];
|
||||
link->rate = drm_dp_max_link_rate(link->dpcd);
|
||||
link->rate = min_t(u32, dp->phy->attrs.max_link_rate * 100,
|
||||
drm_dp_max_link_rate(link->dpcd));
|
||||
link->lanes = min_t(u8, phy_get_bus_width(dp->phy),
|
||||
drm_dp_max_lane_count(link->dpcd));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user