Skip to content

Kobjectify device tree structures

Grant Likely linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest3 patches 4 repliesIn review

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3of: Make device nodes kobjects so they show up in sysfsDocumentation/ABI/testing/sysfs-firmware-ofw arch/arm/boot/dts/testcases/tests-phandle.dtsi arch/powerpc/platforms/pseries/dlpar.c +6 more+193 -160 replies
2/3of/selftest: Add self tests for manipulation of propertiesdrivers/of/selftest.c+62 -04 replies
3/3of: remove /proc/device-treedrivers/of/Kconfig drivers/of/base.c fs/proc/Makefile +4 more+1 -3210 replies

Reviews trailers per patch

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

PatchSascha Hauer
1/3T-b
2/3
3/3

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

Read the v5 thread

Cover letter [PATCH v5 0/3] Kobjectify device tree structures

Hi all,

I've resurrected this series and am posting it for review. I think I've got the last problem that I know about solved. That was the problem that Nathan pointed out that modified properties don't get reflected in the sysfs representation. As I mentioned the last time I posted this series, I will probably put a kernel release between patches 1&2 and patch 3 so that if there is any problems then the old /proc method is still available.

I'm posting this for review, but I've only compile tested on ARM and PowerPC, and boot tested on ARM. I'll be going though a full set of builds when I'm no longer on an airplane. :-)

The existing device-tree userspace ABI remains the same with this series applied.

Nathan, I would particularly appreciate if you can test this on PowerPC machines with OF_DYNAMIC.

g.