Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1594856
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Hoegeun Kwon <hoegeun.kwon@samsung.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v5 3/5] drm/exynos: dsi: Fix the parse_dt function |
| Date | Wed, 08 Mar 2017 06:00:02 +0100 |
| Message-ID | <tiBRE-1o7-21@gated-at.bofh.it> (permalink) |
| References | <tiBRD-1o7-3@gated-at.bofh.it> <tiBRE-1o7-23@gated-at.bofh.it> <tiBRD-1o7-3@gated-at.bofh.it> |
| X-Auditid | b6c32a35-f79d66d000001a37-60-58bf8ea646d4 |
| X-Mailer | git-send-email 1.9.1 |
| X-Brightmail-Tracker | H4sIAAAAAAAAAzWSbUxTVxjHd+5bL2bX3BSnJziV3ETjIK291wIHAkadupuMDyQmSzOy4Q09 oWjf0lsI6AfJMkVrLVQ2XwJWnWw4JLBUNojJQF6G4DJQEUSSFVRmxqY2hhQ2o8aWW7/9/8/z e/4nz8nDkno/k8aWO73Y41TsArOC+mXgoy2GlkCvxdR0jUDT7aM0Ojk6QqCuwSc0iv7gB+jC YLx2LxZlULTFx6BTM/UUevqsjUB/R+5QqO7xvyQaG/tJh8KPJ2k0fr2JQWfHegj0/f07BDry 66AOnW2YZ9D8i2Fqe6rcFmoDcrj1OCN3Lc7S8syJm4R8rfmw3Fn3p04OdLYCeSG8voj9HOfb sGLFnnTsLHVZy51lBcKne0s+LsnKNokGMRflCOlOxYELhF2FRYY95fb4QkJ6pWKviJeKFFUV tmzL97gqvDjd5lK9BUKxKEpG0ZRjlCTJaN76RZ6UFUf2YVt75Bhwd/BVR6PzoAZ0cj6QwkLe DAOnu4CmV8PbkQ7GB1awer4bwNmXPydNLQHPNV9l3k301ASSjRYAay+3E5pZAnD+dJRMUAxv gDH//eXGKn4awNs/niMThuSbCDjV169LUKn8Tlj/25P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BRIWAio53jiTcQIj7wJGhlWMEqkFyQXFSem5hnmp5XrFibnFpXnpesn5uZsY wbH2TGoH48Fd7ocYBTgYlXh4P5zaFyHEmlhWXJl7iFGCg1lJhLfdcn+EEG9KYmVValF+fFFp TmrxIUZToLsmMkuJJucD00BeSbyhibmJubGBhbmlpYmRkjhv4+xn4UIC6YklqdmpqQWpRTB9 TBycUg2MKokb7sx265galz4/9v3rRzs7VWZ/nVPk5P3ssUzSe1XHT7Etm/v+ecgWHUyMDgte 88dQx/HhzWWiZ/6x5uybv72Os63lity8JlFWS7dojynb6w585ttf6JPbobhvUcD8OdLruUr3 RRgWudcVZ66LiHwmVeDXuUbG8EDpKnVl3efXrN6GtdYqsRRnJBpqMRcVJwIAM90y+8sCAAA= |
| X-Mtr | 20000000000000000@CPGS |
| X-Cms-Mailid | 20170308045502epcas1p2d2f7a0f768082b7a54b2ebe260e78436 |
| X-Msg-Generator | CA |
| X-Sender-IP | 203.254.230.26 |
| X-Local-Sender | 권회근Tizen Platform Lab(S/W센터)삼성전자Engineer |
| X-Global-Sender | Hoegeun KwonTizen Platform Lab.Samsung ElectronicsEngineer |
| X-Sender-Code | C10STAFC10V8111 |
| Cms-Type | 101P |
| Dlp-Filter | Pass |
| X-Cfilter-Loop | Reflected |
| X-Hopcount | 7 |
| X-Cms-Rootmailid | 20170308045502epcas1p2d2f7a0f768082b7a54b2ebe260e78436 |
| X-Rootmtr | 20170308045502epcas1p2d2f7a0f768082b7a54b2ebe260e78436 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 68 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | javier@osg.samsung.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, a.hajda@samsung.com, andi.shyti@samsung.com, Hoegeun Kwon <hoegeun.kwon@samsung.com> |
| X-Original-Date | Wed, 08 Mar 2017 13:54:10 +0900 |
| X-Original-Message-ID | <1488948852-5380-4-git-send-email-hoegeun.kwon@samsung.com> |
| X-Original-References | <1488948852-5380-1-git-send-email-hoegeun.kwon@samsung.com> <CGME20170308045502epcas1p2d2f7a0f768082b7a54b2ebe260e78436@epcas1p2.samsung.com> <1488948852-5380-1-git-send-email-hoegeun.kwon@samsung.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1594856 |
Show key headers only | View raw
The dsi + panel is a parental relationship, so OF grpah is not needed.
Therefore, the current dsi_parse_dt function will throw an error,
because there is no linked OF graph for the case fimd + dsi + panel.
Parse the Pll burst and esc clock frequency properties in dsi_parse_dt()
and create a bridge_node only if there is an OF graph associated with dsi.
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_dsi.c | 32 ++++++++------------------------
1 file changed, 8 insertions(+), 24 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
index f5c04d0..2d4e118 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c
@@ -1652,39 +1652,23 @@ static int exynos_dsi_parse_dt(struct exynos_dsi *dsi)
if (ret < 0)
return ret;
- ep = of_graph_get_endpoint_by_regs(node, DSI_PORT_OUT, 0);
- if (!ep) {
- dev_err(dev, "no output port with endpoint specified\n");
- return -EINVAL;
- }
-
- ret = exynos_dsi_of_read_u32(ep, "samsung,burst-clock-frequency",
+ ret = exynos_dsi_of_read_u32(node, "samsung,burst-clock-frequency",
&dsi->burst_clk_rate);
if (ret < 0)
- goto end;
+ return ret;
- ret = exynos_dsi_of_read_u32(ep, "samsung,esc-clock-frequency",
+ ret = exynos_dsi_of_read_u32(node, "samsung,esc-clock-frequency",
&dsi->esc_clk_rate);
if (ret < 0)
- goto end;
-
- of_node_put(ep);
+ return ret;
ep = of_graph_get_next_endpoint(node, NULL);
- if (!ep) {
- ret = -EINVAL;
- goto end;
- }
-
- dsi->bridge_node = of_graph_get_remote_port_parent(ep);
- if (!dsi->bridge_node) {
- ret = -EINVAL;
- goto end;
+ if (ep) {
+ dsi->bridge_node = of_graph_get_remote_port_parent(ep);
+ of_node_put(ep);
}
-end:
- of_node_put(ep);
- return ret;
+ return 0;
}
static int exynos_dsi_bind(struct device *dev, struct device *master,
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v5 3/5] drm/exynos: dsi: Fix the parse_dt function Hoegeun Kwon <hoegeun.kwon@samsung.com> - 2017-03-08 06:00 +0100
csiph-web