Skip to content

video: of: display_timing: Adjust err printing of of_get_display_timing()

Douglas Anderson dri-devel linux-fbdev lkml 1 version Applied

Status from this message: I've merged the whole series to drm-misc-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4video: of: display_timing: Add of_node_put() in of_get_display_timing()drivers/video/of_display_timing.c+6 -11 reply
2/4video: of: display_timing: Don't yell if no timing node is presentdrivers/video/of_display_timing.c+1 -30 replies
3/4drm: panel-lvds: Spout an error if of_get_display_timing() gives an errordrivers/gpu/drm/panel/panel-lvds.c+4 -10 replies
4/4video: amba-clcd: Spout an error if of_get_display_timing() gives an errordrivers/video/fbdev/amba-clcd.c+3 -11 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus WalleijSam RavnborgLaurent Pinchart
SeriesR-b
1/4R-b
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] video: of: display_timing: Adjust err printing of of_get_display_timing()

As reported by Sam Ravnborg [1], after commit b8a2948fa2b3 ("drm/panel: simple: Add ability to override typical timing") we now see a pointless error message printed on every boot for many systems. Let's fix that by adjusting who is responsible for printing error messages when of_get_display_timing() is used.

Most certainly we can bikeshed the topic about whether this is the right fix or we should instead add logic to panel_simple_probe() to avoid calling of_get_display_timing() in the case where there is no "panel-timing" sub-node. If there is consensus that I should move the fix to panel_simple_probe() I'm happy to spin this series. In that case we probably should _remove_ the extra prints that were already present in the other two callers of of_get_display_timing().

While at it, fix a missing of_node_put() found by code inspection.

NOTE: amba-clcd and panel-lvds were only compile-tested.

[1] https://lkml.kernel.org/r/[email protected]

Douglas Anderson (4):
video: of: display_timing: Add of_node_put() in
of_get_display_timing()
video: of: display_timing: Don't yell if no timing node is present
drm: panel-lvds: Spout an error if of_get_display_timing() gives an
error
video: amba-clcd: Spout an error if of_get_display_timing() gives an
error

 drivers/gpu/drm/panel/panel-lvds.c |  5 ++++-
 drivers/video/fbdev/amba-clcd.c    |  4 +++-
 drivers/video/of_display_timing.c  | 11 +++++++----
 3 files changed, 14 insertions(+), 6 deletions(-)
Signature · 1 line
2.22.0.657.g960e92d24f-goog