[PATCH v2 13/14] drm/bridge: ti-sn65dsi86: Print an error if we fallback to panel modes
From: Douglas Anderson
Date: Mon Mar 29 2021 - 22:55:21 EST
Now that we can properly read the EDID for modes there should be no
reason to fallback to the fixed modes that our downstream panel driver
provides us. Let's make that clear by:
- Putting an error message in the logs if we fall back.
- Putting a comment in saying what's going on.
Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
---
(no changes since v1)
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index 92498900c58d..20c3b13939c2 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -318,6 +318,13 @@ static int ti_sn_bridge_connector_get_modes(struct drm_connector *connector)
return num;
}
+ /*
+ * Ideally this should never happen and we could remove the fallback
+ * but let's preserve old behavior.
+ */
+ DRM_DEV_ERROR(pdata->dev,
+ "Failed to read EDID; falling back to panel modes");
+
exit:
return drm_panel_get_modes(pdata->panel, connector);
}
--
2.31.0.291.g576ba9dcdaf-goog