projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb085e
)
drm/msm: Don't fail bind if nothing connected to dsi
author
Sean Paul
<
[email protected]
>
Mon, 30 Jul 2018 15:26:55 +0000
(11:26 -0400)
committer
Rob Clark
<
[email protected]
>
Thu, 4 Oct 2018 00:24:50 +0000
(20:24 -0400)
If there is no bridge or panel connected to a dsi node, don't fail the
entire msm bind. Just ignore the dsi block and move on.
Cc: Doug Anderson <
[email protected]
>
Reviewed-by: Abhinav Kumar <
[email protected]
>
Signed-off-by: Sean Paul <
[email protected]
>
Signed-off-by: Rob Clark <
[email protected]
>
drivers/gpu/drm/msm/dsi/dsi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/msm/dsi/dsi.c
b/drivers/gpu/drm/msm/dsi/dsi.c
index ee07d58c2d9791acf4a36c5ea35d31751082af1c..a9768f823290bd1037c90a49ccb97273cb46a9a5 100644
(file)
--- a/
drivers/gpu/drm/msm/dsi/dsi.c
+++ b/
drivers/gpu/drm/msm/dsi/dsi.c
@@
-118,8
+118,13
@@
static int dsi_bind(struct device *dev, struct device *master, void *data)
DBG("");
msm_dsi = dsi_init(pdev);
- if (IS_ERR(msm_dsi))
- return PTR_ERR(msm_dsi);
+ if (IS_ERR(msm_dsi)) {
+ /* Don't fail the bind if the dsi port is not connected */
+ if (PTR_ERR(msm_dsi) == -ENODEV)
+ return 0;
+ else
+ return PTR_ERR(msm_dsi);
+ }
priv->dsi[msm_dsi->id] = msm_dsi;