lkml.org 
[lkml]   [2019]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] drm/bridge: ti-sn65dsi86: find any enabled endpoint
Date
From: Rob Clark <robdclark@chromium.org>

This bridge is used on a number of devices that can have one of multiple
different panels installed. The firmware will enable the panel driver
node for the panel that is actually installed. So the bridge should ask
drm_of_find_panel_or_bridge() to find the endpoint for the enabled
panel.

Signed-off-by: Rob Clark <robdclark@chromium.org>
---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index 43abf01ebd4c..62bc98d9d152 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -720,7 +720,7 @@ static int ti_sn_bridge_probe(struct i2c_client *client,

pdata->dev = &client->dev;

- ret = drm_of_find_panel_or_bridge(pdata->dev->of_node, 1, 0,
+ ret = drm_of_find_panel_or_bridge(pdata->dev->of_node, 1, -1,
&pdata->panel, NULL);
if (ret) {
DRM_ERROR("could not find any panel node\n");
--
2.23.0
\
 
 \ /
  Last update: 2019-12-07 21:36    [W:0.056 / U:3.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site