Skip to content

Bugfix for of_match_node ordering

Grant Likely linux-devicetree linux-samsung-soc lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 10 repliesIn review
  2. v14 patches 1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Revert "of: search the best compatible match first in __of_match_node()"drivers/of/base.c+1 -420 replies
2/4of: reimplement the matching method for __of_match_node()drivers/of/base.c+74 -342 replies
3/4of: Move testcase FDT data into drivers/ofarch/arm/boot/dts/testcases/tests-interrupts.dtsi arch/arm/boot/dts/testcases/tests-phandle.dtsi arch/arm/boot/dts/testcases/tests.dtsi +5 more+102 -1010 replies
4/4of: Add self test for of_match_node()drivers/of/selftest.c drivers/of/testcase-data/testcases.dtsi drivers/of/testcase-data/tests-match.dtsi+87 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchSachin KamatSoren Brinkmann
SeriesT-b T-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] Bugfix for of_match_node ordering

Hi all,

I've taken Kevin's latest rework and done even more rework on it. :-) I didn't quite like how it was looking so I rolled his scoring code directly into __of_device_is_compatible() so that the function always returns a score in a way that is still compatible with the existing users (ie. non-zero == successful match). This eliminates the need for a separate pscore argument and it also let me roll the type and name checks into the same function. I'm a lot happier with it overall and it makes for a slightly smaller number of lines of code changed. Please take a look and give it a spin. This is basically a bug fix so I'll need to push it out to Linus in the near future.

Acks and Tested-bys would be particularly appreciated.

Thanks,
g.

Kevin Hao (2):
Revert "of: search the best compatible match first in __of_match_node()"
of: reimplement the matching method for __of_match_node()

Grant Likely (2):
of: Move testcase FDT data into drivers/of
of: Add self test for of_match_node()

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html