drm/bridge: tc358767: reject modes which require too much BW
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Jan 2019 11:59:52 +0000 (13:59 +0200)
committerAndrzej Hajda <a.hajda@samsung.com>
Wed, 9 Jan 2019 09:49:30 +0000 (10:49 +0100)
commit51b9e62eb6950c762162ab7eb8390990179be067
tree8f835e6d867453ce666b463a43dcb00f643f3e6a
parent9a63bd6fe1b5590ffa42ae2ed22ee21363293e31
drm/bridge: tc358767: reject modes which require too much BW

The current driver accepts any videomode with pclk < 154MHz. This is not
correct, as with 1 lane and/or 1.62Mbps speed not all videomodes can be
supported.

Add code to reject modes that require more bandwidth that is available.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190103115954.12785-6-tomi.valkeinen@ti.com
drivers/gpu/drm/bridge/tc358767.c