summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-01-13 12:56:19 +0100
committerThierry Reding <treding@nvidia.com>2014-01-14 14:36:51 +0100
commitacde541324dcfe443791da2f3926614d35429222 (patch)
treec1c3d265fc6018c33c661197299d3c2b38787e6f /drivers/gpu/drm/tegra
parent456ac56b7d9f49b519b436b36a708cf46e5aeefb (diff)
downloadblackbird-op-linux-acde541324dcfe443791da2f3926614d35429222.tar.gz
blackbird-op-linux-acde541324dcfe443791da2f3926614d35429222.zip
drm/tegra: Clarify how panel modes override others
When a panel advertises one or more modes, they are used exclusively. Other methods for obtaining the mode, such as DDC as used for HDMI or binary EDID blobs embedded in the DT, are ignored. The panel drivers should be providing this functionality if they want to expose it as well. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c
index f1b5030f55e3..921e4001a090 100644
--- a/drivers/gpu/drm/tegra/output.c
+++ b/drivers/gpu/drm/tegra/output.c
@@ -18,6 +18,10 @@ static int tegra_connector_get_modes(struct drm_connector *connector)
struct edid *edid = NULL;
int err = 0;
+ /*
+ * If the panel provides one or more modes, use them exclusively and
+ * ignore any other means of obtaining a mode.
+ */
if (output->panel) {
err = output->panel->funcs->get_modes(output->panel);
if (err > 0)
OpenPOWER on IntegriCloud