Skip to content

of: Add helper for counting phandle refernces

Grant Likely linux-devicetree lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 2 repliesIn review
  2. v23 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5of/selftest: Fix GPIOs selftest to cover the 7th casedrivers/of/selftest.c+1 -10 replies
2/5of/selftest: Use selftest() macro throughoutdrivers/of/selftest.c+14 -230 replies
3/5of/base: Clean up exit paths for of_parse_phandle_with_args()drivers/of/base.c+19 -70 replies
4/5of: Create function for counting number of phandles in a propertydrivers/of/base.c drivers/of/selftest.c include/linux/of.h+61 -41 reply
5/5gpio: Make of_count_named_gpios() use new of_count_phandle_with_args()drivers/gpio/gpiolib-of.c drivers/hwmon/gpio-fan.c drivers/input/keyboard/matrix_keypad.c +6 more+41 -711 reply

Reviews trailers per patch

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

PatchAndreas Larsson
1/5
2/5
3/5
4/5T-b
5/5T-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] of: Add helper for counting phandle refernces

Well, this started as a single patch to get rid of horrible brute-force counting of phandles and ended with fixes to the selftest code and cleanups to the existing phandle parser before actually getting to the new feature.

The selftest code is still a little fiddly to execute, but at least it is consistent now. Sometime soon I'll link the selftest data directly into the kernel so nothing special has to be done to run it, but I think the DT grafting support needs to go in first.