Skip to content

video: of: display_timing: fixes

Andrzej Hajda dri-devel linux-fbdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2video: of: display_timing: correct display-timings node findingdrivers/video/of_display_timing.c+3 -31 reply
2/2video: of: display_timing: remove broken of_display_timings_existdrivers/video/of_display_timing.c include/video/of_display_timing.h+0 -211 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] video: of: display_timing: fixes

Hi,

Those two independent patches fixes DT display_timings related code. The first patch replaces of_find_node_by_name by of_get_child_by_name. Usage of of_find_node_by_name in such context is incorrect:
- we need only direct child, and this function looks for following nodes on implementation internal list regardless of the hierarchy,
- there is no warranty that child nodes are after parent nodes in this search order, it happens to be true for DT created from FDT, but it is not true for dynamic DT.

The second patch just removes unused/broken function.

Regards
Andrzej

Andrzej Hajda (2):
video: of: display_timing: correct display-timings node finding
video: of: display_timing: remove broken of_display_timings_exist

 drivers/video/of_display_timing.c | 26 +++-----------------------
 include/video/of_display_timing.h |  1 -
 2 files changed, 3 insertions(+), 24 deletions(-)
Signature · 1 line
1.8.1.2