diff options
author | Andrey Gusakov <andrey.gusakov@cogentembedded.com> | 2017-11-07 19:56:20 +0300 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2017-11-30 09:55:53 +0300 |
commit | 99fc8e963a4c0203dba26a77cf737db6081bca14 (patch) | |
tree | 139546726d3899a5882057ec48781800094c1ffc /drivers | |
parent | cffd2b16c01c3431a7a7dd62e722af33490fc436 (diff) | |
download | linux-99fc8e963a4c0203dba26a77cf737db6081bca14.tar.xz |
drm/bridge: tc358767: filter out too high modes
Pixel clock limitation for DPI is 154 MHz. Do not accept modes
with higher pixel clock rate.
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1510073785-16108-3-git-send-email-andrey.gusakov@cogentembedded.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/bridge/tc358767.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index e1996dbfb0a1..e571b5e29ae7 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1103,7 +1103,10 @@ static bool tc_bridge_mode_fixup(struct drm_bridge *bridge, static int tc_connector_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { - /* Accept any mode */ + /* DPI interface clock limitation: upto 154 MHz */ + if (mode->clock > 154000) + return MODE_CLOCK_HIGH; + return MODE_OK; } |