]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:29:04 +0000 (10:29 +0100)
commitb5e7155ec99377b62fd3b09cc0c185396ee47968
tree4350fc491281353c1db06b332fa9953aad890a33
parent57781d8b77cc3941da7e2f1e3d0d50349c0a328c
drm/bridge: tc358767: reject modes which require too much BW

[ Upstream commit 51b9e62eb6950c762162ab7eb8390990179be067 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/tc358767.c