* [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint()
@ 2024-11-26 5:43 Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 1/3] gpu: drm: drm_of: " Kuninori Morimoto
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-11-26 5:43 UTC (permalink / raw)
To: Rob Herring, Laurent Pinchart, Thierry Reding, Daniel Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Neil Armstrong, Jessica Zhang,
Florian Fainelli, Alexey Brodkin
Cc: dri-devel, Broadcom internal kernel review list, linux-kernel,
linux-rpi-kernel, linux-arm-kernel
Hi Maarten, Maxime, Thomas
Cc Laurent
The patch has been created as 1 patch for "drivers/gpu/drm", but this time
I have finely disassembled the patch into 3 patches.
v6 -> v7
- created as 3 patches
Kuninori Morimoto (3):
gpu: drm: drm_of: replace of_graph_get_next_endpoint()
gpu: drm: panel: replace of_graph_get_next_endpoint()
gpu: drm: tiny: replace of_graph_get_next_endpoint()
drivers/gpu/drm/drm_of.c | 4 +++-
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 2 +-
drivers/gpu/drm/tiny/arcpgu.c | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v7 1/3] gpu: drm: drm_of: replace of_graph_get_next_endpoint()
2024-11-26 5:43 [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint() Kuninori Morimoto
@ 2024-11-26 5:44 ` Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 2/3] gpu: drm: panel: " Kuninori Morimoto
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-11-26 5:44 UTC (permalink / raw)
To: Rob Herring, Laurent Pinchart, Thierry Reding, Daniel Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Neil Armstrong, Jessica Zhang,
Florian Fainelli, Alexey Brodkin
Cc: dri-devel, Broadcom internal kernel review list, linux-kernel,
linux-rpi-kernel, linux-arm-kernel
From DT point of view, in general, drivers should be asking for a
specific port number because their function is fixed in the binding.
of_graph_get_next_endpoint() doesn't match to this concept.
Simply replace
- of_graph_get_next_endpoint(xxx, NULL);
+ of_graph_get_endpoint_by_regs(xxx, 0, -1);
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/drm_of.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 5c2abc9eca9c2..5530919e0ba05 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -564,6 +564,8 @@ EXPORT_SYMBOL_GPL(drm_of_get_data_lanes_count_ep);
* Gets parent DSI bus for a DSI device controlled through a bus other
* than MIPI-DCS (SPI, I2C, etc.) using the Device Tree.
*
+ * This function assumes that the device's port@0 is the DSI input.
+ *
* Returns pointer to mipi_dsi_host if successful, -EINVAL if the
* request is unsupported, -EPROBE_DEFER if the DSI host is found but
* not available, or -ENODEV otherwise.
@@ -576,7 +578,7 @@ struct mipi_dsi_host *drm_of_get_dsi_bus(struct device *dev)
/*
* Get first endpoint child from device.
*/
- endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
+ endpoint = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1);
if (!endpoint)
return ERR_PTR(-ENODEV);
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v7 2/3] gpu: drm: panel: replace of_graph_get_next_endpoint()
2024-11-26 5:43 [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint() Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 1/3] gpu: drm: drm_of: " Kuninori Morimoto
@ 2024-11-26 5:44 ` Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 3/3] gpu: drm: tiny: " Kuninori Morimoto
2024-11-26 12:32 ` [PATCH v7 0/3] gpu: drm: " Laurent Pinchart
3 siblings, 0 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-11-26 5:44 UTC (permalink / raw)
To: Rob Herring, Laurent Pinchart, Thierry Reding, Daniel Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Neil Armstrong, Jessica Zhang,
Florian Fainelli, Alexey Brodkin
Cc: dri-devel, Broadcom internal kernel review list, linux-kernel,
linux-rpi-kernel, linux-arm-kernel
From DT point of view, in general, drivers should be asking for a
specific port number because their function is fixed in the binding.
of_graph_get_next_endpoint() doesn't match to this concept.
Simply replace
- of_graph_get_next_endpoint(xxx, NULL);
+ of_graph_get_endpoint_by_regs(xxx, 0, -1);
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
index 4618c892cdd65..e10e469aa7a6c 100644
--- a/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
+++ b/drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
@@ -400,7 +400,7 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c)
rpi_touchscreen_i2c_write(ts, REG_POWERON, 0);
/* Look up the DSI host. It needs to probe before we do. */
- endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
+ endpoint = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1);
if (!endpoint)
return -ENODEV;
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v7 3/3] gpu: drm: tiny: replace of_graph_get_next_endpoint()
2024-11-26 5:43 [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint() Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 1/3] gpu: drm: drm_of: " Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 2/3] gpu: drm: panel: " Kuninori Morimoto
@ 2024-11-26 5:44 ` Kuninori Morimoto
2024-11-26 12:32 ` [PATCH v7 0/3] gpu: drm: " Laurent Pinchart
3 siblings, 0 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-11-26 5:44 UTC (permalink / raw)
To: Rob Herring, Laurent Pinchart, Thierry Reding, Daniel Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Neil Armstrong, Jessica Zhang,
Florian Fainelli, Alexey Brodkin
Cc: dri-devel, Broadcom internal kernel review list, linux-kernel,
linux-rpi-kernel, linux-arm-kernel
From DT point of view, in general, drivers should be asking for a
specific port number because their function is fixed in the binding.
of_graph_get_next_endpoint() doesn't match to this concept.
Simply replace
- of_graph_get_next_endpoint(xxx, NULL);
+ of_graph_get_endpoint_by_regs(xxx, 0, -1);
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
drivers/gpu/drm/tiny/arcpgu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c
index 81abedec435db..b2dc02df74f89 100644
--- a/drivers/gpu/drm/tiny/arcpgu.c
+++ b/drivers/gpu/drm/tiny/arcpgu.c
@@ -289,7 +289,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
* There is only one output port inside each device. It is linked with
* encoder endpoint.
*/
- endpoint_node = of_graph_get_next_endpoint(pdev->dev.of_node, NULL);
+ endpoint_node = of_graph_get_endpoint_by_regs(pdev->dev.of_node, 0, -1);
if (endpoint_node) {
encoder_node = of_graph_get_remote_port_parent(endpoint_node);
of_node_put(endpoint_node);
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint()
2024-11-26 5:43 [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint() Kuninori Morimoto
` (2 preceding siblings ...)
2024-11-26 5:44 ` [PATCH v7 3/3] gpu: drm: tiny: " Kuninori Morimoto
@ 2024-11-26 12:32 ` Laurent Pinchart
2024-11-26 23:39 ` Kuninori Morimoto
3 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2024-11-26 12:32 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: Rob Herring, Thierry Reding, Daniel Vetter, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Neil Armstrong, Jessica Zhang, Florian Fainelli, Alexey Brodkin,
dri-devel, Broadcom internal kernel review list, linux-kernel,
linux-rpi-kernel, linux-arm-kernel
Hi Morimoto-san,
On Tue, Nov 26, 2024 at 05:43:34AM +0000, Kuninori Morimoto wrote:
>
> Hi Maarten, Maxime, Thomas
> Cc Laurent
>
> The patch has been created as 1 patch for "drivers/gpu/drm", but this time
> I have finely disassembled the patch into 3 patches.
Thomas has merged v6 in drm-misc in commit 17558f97fe62fbe14757880a0aa998bfd194ea95
> v6 -> v7
> - created as 3 patches
>
> Kuninori Morimoto (3):
> gpu: drm: drm_of: replace of_graph_get_next_endpoint()
> gpu: drm: panel: replace of_graph_get_next_endpoint()
> gpu: drm: tiny: replace of_graph_get_next_endpoint()
>
> drivers/gpu/drm/drm_of.c | 4 +++-
> drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 2 +-
> drivers/gpu/drm/tiny/arcpgu.c | 2 +-
> 3 files changed, 5 insertions(+), 3 deletions(-)
>
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint()
2024-11-26 12:32 ` [PATCH v7 0/3] gpu: drm: " Laurent Pinchart
@ 2024-11-26 23:39 ` Kuninori Morimoto
0 siblings, 0 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-11-26 23:39 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Rob Herring, Thierry Reding, Daniel Vetter, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Neil Armstrong, Jessica Zhang, Florian Fainelli, Alexey Brodkin,
dri-devel, Broadcom internal kernel review list, linux-kernel,
linux-rpi-kernel, linux-arm-kernel
Hi Laurent
Thank you for the reply
> > Hi Maarten, Maxime, Thomas
> > Cc Laurent
> >
> > The patch has been created as 1 patch for "drivers/gpu/drm", but this time
> > I have finely disassembled the patch into 3 patches.
>
> Thomas has merged v6 in drm-misc in commit 17558f97fe62fbe14757880a0aa998bfd194ea95
Yeah, I have noticed about it, and could find it on linux-next/master
before, but can't today. So I thought it was rejected for some reasons...
Thank you for your help !!
Best regards
---
Kuninori Morimoto
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-11-26 23:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-26 5:43 [PATCH v7 0/3] gpu: drm: replace of_graph_get_next_endpoint() Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 1/3] gpu: drm: drm_of: " Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 2/3] gpu: drm: panel: " Kuninori Morimoto
2024-11-26 5:44 ` [PATCH v7 3/3] gpu: drm: tiny: " Kuninori Morimoto
2024-11-26 12:32 ` [PATCH v7 0/3] gpu: drm: " Laurent Pinchart
2024-11-26 23:39 ` Kuninori Morimoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®