public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/9] drm: Switch from dev_err to dev_err_probe for missing DSI host error path
@ 2024-03-01  0:12 Nícolas F. R. A. Prado
  2024-03-01  0:12 ` [PATCH v2 1/9] drm/bridge: anx7625: Don't log an error when DSI host can't be found Nícolas F. R. A. Prado
                   ` (10 more replies)
  0 siblings, 11 replies; 23+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-03-01  0:12 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
	Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Daniel Vetter, owen, Jagan Teki,
	Marek Vasut, Adrien Grassein, Srinivas Kandagatla, Sam Ravnborg,
	Bjorn Andersson, Vinod Koul, Dmitry Baryshkov, Vinay Simha BN,
	Christopher Vollo, Jessica Zhang, Marijn Suijten,
	AngeloGioacchino Del Regno
  Cc: kernel, dri-devel, linux-kernel, AngeloGioacchino Del Regno,
	Nícolas F. R. A. Prado

This series changes every occurence of the following pattern: 

	dsi_host = of_find_mipi_dsi_host_by_node(dsi);
	if (!dsi_host) {
		dev_err(dev, "failed to find dsi host\n");
		return -EPROBE_DEFER;
	}

into

	dsi_host = of_find_mipi_dsi_host_by_node(dsi);
	if (!dsi_host)
		return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n");

This registers the defer probe reason (so it can later be printed by the
driver core or checked on demand through the devices_deferred file in
debugfs) and prevents errors to be spammed in the kernel log every time
the driver retries to probe, unnecessarily alerting userspace about
something that is a normal part of the boot process.

I have omitted a Fixes: tag in the last patch, for the truly-nt35597
panel, because it predates the dev_err_probe() helper.

Changes in v2:
- Added patches 2 onwards to fix all occurences of this pattern instead
  of just for the anx7625 driver
- Link to v1: https://lore.kernel.org/r/20240226-anx7625-defer-log-no-dsi-host-v1-1-242b1af31884@collabora.com

---
Nícolas F. R. A. Prado (9):
      drm/bridge: anx7625: Don't log an error when DSI host can't be found
      drm/bridge: icn6211: Don't log an error when DSI host can't be found
      drm/bridge: lt8912b: Don't log an error when DSI host can't be found
      drm/bridge: lt9611: Don't log an error when DSI host can't be found
      drm/bridge: lt9611uxc: Don't log an error when DSI host can't be found
      drm/bridge: tc358775: Don't log an error when DSI host can't be found
      drm/bridge: dpc3433: Don't log an error when DSI host can't be found
      drm/panel: novatek-nt35950: Don't log an error when DSI host can't be found
      drm/panel: truly-nt35597: Don't log an error when DSI host can't be found

 drivers/gpu/drm/bridge/analogix/anx7625.c     |  6 ++----
 drivers/gpu/drm/bridge/chipone-icn6211.c      |  6 ++----
 drivers/gpu/drm/bridge/lontium-lt8912b.c      |  6 ++----
 drivers/gpu/drm/bridge/lontium-lt9611.c       |  6 ++----
 drivers/gpu/drm/bridge/lontium-lt9611uxc.c    |  6 ++----
 drivers/gpu/drm/bridge/tc358775.c             |  6 ++----
 drivers/gpu/drm/bridge/ti-dlpc3433.c          | 17 +++++++++--------
 drivers/gpu/drm/panel/panel-novatek-nt35950.c |  6 ++----
 drivers/gpu/drm/panel/panel-truly-nt35597.c   |  6 ++----
 9 files changed, 25 insertions(+), 40 deletions(-)
---
base-commit: 2ae0a045e6814c8c1d676d6153c605a65746aa29
change-id: 20240226-anx7625-defer-log-no-dsi-host-c3f9ccbcb287

Best regards,
-- 
Nícolas F. R. A. Prado <nfraprado@collabora.com>


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

end of thread, other threads:[~2024-03-08 15:03 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01  0:12 [PATCH v2 0/9] drm: Switch from dev_err to dev_err_probe for missing DSI host error path Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 1/9] drm/bridge: anx7625: Don't log an error when DSI host can't be found Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 2/9] drm/bridge: icn6211: " Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 3/9] drm/bridge: lt8912b: " Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 4/9] drm/bridge: lt9611: " Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 5/9] drm/bridge: lt9611uxc: " Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 6/9] drm/bridge: tc358775: " Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 7/9] drm/bridge: dpc3433: " Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 8/9] drm/panel: novatek-nt35950: " Nícolas F. R. A. Prado
2024-03-01  6:29   ` Laurent Pinchart
2024-03-01  8:44   ` AngeloGioacchino Del Regno
2024-03-08 15:03     ` Nícolas F. R. A. Prado
2024-03-01  0:12 ` [PATCH v2 9/9] drm/panel: truly-nt35597: " Nícolas F. R. A. Prado
2024-03-01  0:31   ` Abhinav Kumar
2024-03-01  6:30   ` Laurent Pinchart
2024-03-01  8:44     ` AngeloGioacchino Del Regno
2024-03-01  8:56       ` Laurent Pinchart
2024-03-01  9:37         ` AngeloGioacchino Del Regno
2024-03-01 10:54           ` Neil Armstrong
2024-03-01  6:34 ` [PATCH v2 0/9] drm: Switch from dev_err to dev_err_probe for missing DSI host error path Laurent Pinchart
2024-03-01 16:19   ` Nícolas F. R. A. Prado
2024-03-01 21:44     ` Laurent Pinchart
2024-03-01  8:47 ` AngeloGioacchino Del Regno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox