All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: Set max rate for Innolux p079x panels
@ 2018-11-14 11:42 Linus Walleij
  2018-11-14 14:31 ` Heiko Stübner
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2018-11-14 11:42 UTC (permalink / raw)
  To: Thierry Reding, dri-devel; +Cc: Chris Zhong, Lin Huang

After adding the hs_rate and lp_rate fields to the DSI device
we need to populate these accordingly so display drivers can
respect them.

Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Chris Zhong <zyw@rock-chips.com>
Cc: Lin Huang <hl@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpu/drm/panel/panel-innolux-p079zca.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c
index ca4ae45dd307..2013cd3c58ba 100644
--- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c
+++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c
@@ -518,6 +518,9 @@ static int innolux_panel_probe(struct mipi_dsi_device *dsi)
 	dsi->mode_flags = desc->flags;
 	dsi->format = desc->format;
 	dsi->lanes = desc->lanes;
+	/* This is presumably the HS rate */
+	dsi->hs_rate = desc->mode->clock * 1000;
+	/* FIXME: LP rate not specified */
 
 	err = innolux_panel_add(dsi, desc);
 	if (err < 0)
-- 
2.17.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/panel: Set max rate for Innolux p079x panels
  2018-11-14 11:42 [PATCH] drm/panel: Set max rate for Innolux p079x panels Linus Walleij
@ 2018-11-14 14:31 ` Heiko Stübner
  2018-11-18 21:38   ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stübner @ 2018-11-14 14:31 UTC (permalink / raw)
  To: Linus Walleij; +Cc: Chris Zhong, Thierry Reding, Lin Huang, dri-devel

Hi Linus,

Am Mittwoch, 14. November 2018, 12:42:54 CET schrieb Linus Walleij:
> After adding the hs_rate and lp_rate fields to the DSI device
> we need to populate these accordingly so display drivers can
> respect them.
> 
> Cc: Andrzej Hajda <a.hajda@samsung.com>
> Cc: Chris Zhong <zyw@rock-chips.com>
> Cc: Lin Huang <hl@rock-chips.com>
> Cc: Heiko Stuebner <heiko@sntech.de>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

While my understanding of DSI is marginal, the display on my
scarlet (p097pfg variant in the driver) still comes up, so

Tested-by: Heiko Stuebner <heiko@sntech.de>


Heiko


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/panel: Set max rate for Innolux p079x panels
  2018-11-14 14:31 ` Heiko Stübner
@ 2018-11-18 21:38   ` Linus Walleij
  0 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2018-11-18 21:38 UTC (permalink / raw)
  To: Heiko Stübner
  Cc: Chris Zhong, thierry.reding, Lin Huang, open list:DRM PANEL DRIVERS

On Wed, Nov 14, 2018 at 3:31 PM Heiko Stübner <heiko@sntech.de> wrote:
> Am Mittwoch, 14. November 2018, 12:42:54 CET schrieb Linus Walleij:
> > After adding the hs_rate and lp_rate fields to the DSI device
> > we need to populate these accordingly so display drivers can
> > respect them.
> >
> > Cc: Andrzej Hajda <a.hajda@samsung.com>
> > Cc: Chris Zhong <zyw@rock-chips.com>
> > Cc: Lin Huang <hl@rock-chips.com>
> > Cc: Heiko Stuebner <heiko@sntech.de>
> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>
> While my understanding of DSI is marginal, the display on my
> scarlet (p097pfg variant in the driver) still comes up, so
>
> Tested-by: Heiko Stuebner <heiko@sntech.de>

It's mainly that we want displays to report their speed capabilities.

It is up to the display drivers to make use of it to throttle the lanes,
I think they all use some safe default as of now.

Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-18 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-14 11:42 [PATCH] drm/panel: Set max rate for Innolux p079x panels Linus Walleij
2018-11-14 14:31 ` Heiko Stübner
2018-11-18 21:38   ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.