All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] HACK: drm/panel: ltk050h3146w: read panel-id
@ 2025-04-09 10:59 Dan Carpenter
  2025-04-09 11:32 ` Heiko Stübner
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2025-04-09 10:59 UTC (permalink / raw)
  To: Heiko Stuebner; +Cc: dri-devel

Hello Heiko Stuebner,

Commit e09be2a6ab1a ("HACK: drm/panel: ltk050h3146w: read panel-id")
from Mar 26, 2025 (linux-next), leads to the following Smatch static
checker warning:

	drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c:490 ltk050h314x_read_id()
	warn: inconsistent indenting

drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c
    477 static int ltk050h314x_read_id(struct mipi_dsi_multi_context *dsi_ctx) {
    478 //        struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
    479         u8 id[3] = {0};
    480         int ret;
    481 
    482         /* ILI988D requires a page 1 select to return stable results for register 4
    483          * HX8394-F ignores this command */
    484         ltk050h3146w_a2_select_page(dsi_ctx, 1);
    485 
    486         ret = mipi_dsi_dcs_read(dsi_ctx->dsi, 0x04, id, ARRAY_SIZE(id));
    487         if (ret < 0)
    488                 return ret;
    489 
--> 490 printk("%s: %u %u %u\n", __func__, id[0], id[1], id[2]);

It looks like debug code escaped.  Although this might also have been
intentional based on the HACK in the summary.

    491         return (id[0] << 16) | (id[1] << 8) | (id[2] << 0);
    492 }
    493 
    494 static int ltk050h3146w_prepare(struct drm_panel *panel)
    495 {

regards,
dan carpenter

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

* Re: [bug report] HACK: drm/panel: ltk050h3146w: read panel-id
  2025-04-09 10:59 [bug report] HACK: drm/panel: ltk050h3146w: read panel-id Dan Carpenter
@ 2025-04-09 11:32 ` Heiko Stübner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stübner @ 2025-04-09 11:32 UTC (permalink / raw)
  To: Heiko Stuebner, dri-devel; +Cc: dri-devel, Dan Carpenter

Hi Dan,

Am Mittwoch, 9. April 2025, 12:59:39 Mitteleuropäische Sommerzeit schrieb Dan Carpenter:
> Commit e09be2a6ab1a ("HACK: drm/panel: ltk050h3146w: read panel-id")

that commit was accientially merged into my for-next branch but never
applied to any actual kernel branch (and is already gone again after
today's linux-next run).

Heiko




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

end of thread, other threads:[~2025-04-09 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 10:59 [bug report] HACK: drm/panel: ltk050h3146w: read panel-id Dan Carpenter
2025-04-09 11:32 ` Heiko Stübner

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.