All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error
@ 2022-10-21 20:07 ` Douglas Anderson
  0 siblings, 0 replies; 14+ messages in thread
From: Douglas Anderson @ 2022-10-21 20:07 UTC (permalink / raw)
  To: dri-devel
  Cc: Thomas Zimmermann, Abhinav Kumar, linux-kernel, Douglas Anderson,
	Stephen Boyd, Kuogee Hsieh

If we fail to get a valid panel ID in drm_edid_get_panel_id() we'd
like to see the EDID that was read so we have a chance of
understanding what's wrong. There's already a function for that, so
let's call it in the error case.

NOTE: edid_block_read() has a retry loop in it, so actually we'll only
print the block read back from the final attempt. This still seems
better than nothing.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 drivers/gpu/drm/drm_edid.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 47465b9765f1..d63e26ec88b1 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -2721,6 +2721,8 @@ u32 drm_edid_get_panel_id(struct i2c_adapter *adapter)
 
 	if (edid_block_status_valid(status, edid_block_tag(base_block)))
 		panel_id = edid_extract_panel_id(base_block);
+	else
+		edid_block_dump(KERN_NOTICE, base_block, 0);
 
 	kfree(base_block);
 
-- 
2.38.0.135.g90850a2211-goog


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

end of thread, other threads:[~2022-11-14 22:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-21 20:07 [PATCH] drm/edid: Dump the EDID when drm_edid_get_panel_id() has an error Douglas Anderson
2022-10-21 20:07 ` Douglas Anderson
2022-10-21 21:18 ` Abhinav Kumar
2022-10-21 21:18   ` Abhinav Kumar
2022-10-24 20:28   ` Doug Anderson
2022-10-24 20:28     ` Doug Anderson
2022-10-25 20:39     ` Abhinav Kumar
2022-10-25 20:39       ` Abhinav Kumar
2022-11-11 20:45       ` Doug Anderson
2022-11-11 20:45         ` Doug Anderson
2022-11-14 10:02         ` Jani Nikula
2022-11-14 10:02           ` Jani Nikula
2022-11-14 22:08           ` Doug Anderson
2022-11-14 22:08             ` Doug Anderson

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.