All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: elida-kd35t133: allow using non-continuous dsi clock
@ 2021-02-19  3:13 Chris Morgan
  2021-02-19 16:00 ` Ezequiel Garcia
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Morgan @ 2021-02-19  3:13 UTC (permalink / raw)
  To: tzimmermann, thierry.reding, sam, airlied, daniel, dri-devel,
	heiko, ezequiel
  Cc: Chris Morgan

This fixes an issue with the panel not working after
commit c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock").
With this change the panel inits successfully and displays an image.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 drivers/gpu/drm/panel/panel-elida-kd35t133.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-elida-kd35t133.c b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
index bc36aa3c1123..fe5ac3ef9018 100644
--- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c
+++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
@@ -265,7 +265,8 @@ static int kd35t133_probe(struct mipi_dsi_device *dsi)
 	dsi->lanes = 1;
 	dsi->format = MIPI_DSI_FMT_RGB888;
 	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
-			  MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
+			  MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET |
+			  MIPI_DSI_CLOCK_NON_CONTINUOUS;
 
 	drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
 		       DRM_MODE_CONNECTOR_DSI);
-- 
2.25.1

_______________________________________________
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: elida-kd35t133: allow using non-continuous dsi clock
  2021-02-19  3:13 [PATCH] drm/panel: elida-kd35t133: allow using non-continuous dsi clock Chris Morgan
@ 2021-02-19 16:00 ` Ezequiel Garcia
  2021-02-19 16:02   ` Christopher Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Ezequiel Garcia @ 2021-02-19 16:00 UTC (permalink / raw)
  To: Chris Morgan
  Cc: tzimmermann, David Airlie, dri-devel, Thierry Reding, Sam Ravnborg

On Fri, 19 Feb 2021 at 00:14, Chris Morgan <macromorgan@hotmail.com> wrote:
>
> This fixes an issue with the panel not working after
> commit c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock").
> With this change the panel inits successfully and displays an image.
>
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> ---
>  drivers/gpu/drm/panel/panel-elida-kd35t133.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-elida-kd35t133.c b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
> index bc36aa3c1123..fe5ac3ef9018 100644
> --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c
> +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
> @@ -265,7 +265,8 @@ static int kd35t133_probe(struct mipi_dsi_device *dsi)
>         dsi->lanes = 1;
>         dsi->format = MIPI_DSI_FMT_RGB888;
>         dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
> -                         MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
> +                         MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET |
> +                         MIPI_DSI_CLOCK_NON_CONTINUOUS;
>
>         drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
>                        DRM_MODE_CONNECTOR_DSI);
> --
> 2.25.1
>

I kindly appreciate you taking the time to debug this one.
It looks good, but also seems like Heiko already sent the same fix:

https://www.spinics.net/lists/kernel/msg3824932.html

Thanks,
Eze
_______________________________________________
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: elida-kd35t133: allow using non-continuous dsi clock
  2021-02-19 16:00 ` Ezequiel Garcia
@ 2021-02-19 16:02   ` Christopher Morgan
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Morgan @ 2021-02-19 16:02 UTC (permalink / raw)
  To: Ezequiel Garcia
  Cc: tzimmermann, David Airlie, dri-devel, Thierry Reding, Sam Ravnborg


[-- Attachment #1.1: Type: text/plain, Size: 2563 bytes --]

Yes, I just spoke with him via email.  I can confirm his fix/my fix/whichever fix solves the issue on the latest 5.11 kernel.


From: Ezequiel Garcia<mailto:ezequiel@vanguardiasur.com.ar>
Sent: Friday, February 19, 2021 10:00 AM
To: Chris Morgan<mailto:macromorgan@hotmail.com>
Cc: tzimmermann@suse.de<mailto:tzimmermann@suse.de>; Thierry Reding<mailto:thierry.reding@gmail.com>; Sam Ravnborg<mailto:sam@ravnborg.org>; David Airlie<mailto:airlied@linux.ie>; Daniel Vetter<mailto:daniel@ffwll.ch>; dri-devel<mailto:dri-devel@lists.freedesktop.org>; Heiko Stuebner<mailto:heiko@sntech.de>
Subject: Re: [PATCH] drm/panel: elida-kd35t133: allow using non-continuous dsi clock

On Fri, 19 Feb 2021 at 00:14, Chris Morgan <macromorgan@hotmail.com> wrote:
>
> This fixes an issue with the panel not working after
> commit c6d94e37bdbb ("drm/bridge/synopsys: dsi: add support for non-continuous HS clock").
> With this change the panel inits successfully and displays an image.
>
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> ---
>  drivers/gpu/drm/panel/panel-elida-kd35t133.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/panel/panel-elida-kd35t133.c b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
> index bc36aa3c1123..fe5ac3ef9018 100644
> --- a/drivers/gpu/drm/panel/panel-elida-kd35t133.c
> +++ b/drivers/gpu/drm/panel/panel-elida-kd35t133.c
> @@ -265,7 +265,8 @@ static int kd35t133_probe(struct mipi_dsi_device *dsi)
>         dsi->lanes = 1;
>         dsi->format = MIPI_DSI_FMT_RGB888;
>         dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
> -                         MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET;
> +                         MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET |
> +                         MIPI_DSI_CLOCK_NON_CONTINUOUS;
>
>         drm_panel_init(&ctx->panel, &dsi->dev, &kd35t133_funcs,
>                        DRM_MODE_CONNECTOR_DSI);
> --
> 2.25.1
>

I kindly appreciate you taking the time to debug this one.
It looks good, but also seems like Heiko already sent the same fix:

https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.spinics.net%2Flists%2Fkernel%2Fmsg3824932.html&amp;data=04%7C01%7C%7Cbdecc3cd75554c2ad3bb08d8d4ef7324%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637493472196595230%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=oBQtE63GEcbqIPxEtO%2BotZEaUnwrRD52OynUoBB%2FNp4%3D&amp;reserved=0

Thanks,
Eze


[-- Attachment #1.2: Type: text/html, Size: 5605 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
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:[~2021-02-19 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19  3:13 [PATCH] drm/panel: elida-kd35t133: allow using non-continuous dsi clock Chris Morgan
2021-02-19 16:00 ` Ezequiel Garcia
2021-02-19 16:02   ` Christopher Morgan

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.