mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
drm/rockchip: cdn-dp: Reject non-32-bits-aligned mode widths
Change-Id: I8f6b94baef9fd5db2090e36dc8974769b7d469f7 Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
@@ -313,6 +313,9 @@ static int cdn_dp_connector_mode_valid(struct drm_connector *connector,
|
||||
break;
|
||||
}
|
||||
|
||||
if (!IS_ALIGNED(mode->hdisplay * bpc * 3, 32))
|
||||
return MODE_H_ILLEGAL;
|
||||
|
||||
requested = mode->clock * bpc * 3 / 1000;
|
||||
|
||||
source_max = dp->lanes;
|
||||
|
||||
Reference in New Issue
Block a user