diff options
author | Robert Foss <robert.foss@linaro.org> | 2020-11-20 13:59:25 +0100 |
---|---|---|
committer | Aníbal Limón <anibal.limon@linaro.org> | 2020-11-20 08:48:08 -0600 |
commit | dfc69bfc93c0d2f943d21340e55a61c391794a71 (patch) | |
tree | 866f5d18f14600fdb84c00ff95a511a7b80b631d | |
parent | c27744ae57eaa70a3725ea586099a6d7b91fa9ef (diff) |
drm/bridge: Handle unsupported panelsopenembedded-qcom-dragonboard845c-20.11openembedded-qcom-dragonboard410c-20.11debian-qcom-dragonboard845c-20.11debian-qcom-dragonboard410c-20.11release/qcomlt-5.9
Some panels are currently supported by lt9611, but not by the display itself.
This causes issues where a mode unsupported by the display driver is picked
by the bridge.
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
-rw-r--r-- | drivers/gpu/drm/bridge/lontium-lt9611.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c index d734d9402c35..f93a1fa50893 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c @@ -867,8 +867,14 @@ static enum drm_mode_status lt9611_bridge_mode_valid(struct drm_bridge *bridge, const struct drm_display_mode *mode) { struct lt9611_mode *lt9611_mode = lt9611_find_mode(mode); + struct lt9611 *lt9611 = bridge_to_lt9611(bridge); - return lt9611_mode ? MODE_OK : MODE_BAD; + if (!lt9611_mode || !lt9611) + return MODE_BAD; + else if (lt9611_mode->intfs > 1 && !lt9611->dsi1) + return MODE_PANEL; + else + return MODE_OK; } static void lt9611_bridge_pre_enable(struct drm_bridge *bridge) |