Skip to content

DT cpu node iterator

Rob Herring dri-devel linux-arm-kernel linux-clk linux-devicetree linux-edac linux-fbdev linux-iommu linux-renesas-soc linux-riscv linux-sh linuxppc-dev lkml openrisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21of: Add cpu node iterator for_each_of_cpu_node()drivers/of/base.c include/linux/of.h+50 -07 replies
2/21of: Support matching cpu nodes with no 'reg' propertydrivers/of/base.c+2 -00 replies
3/21ARM: use for_each_of_cpu_node iteratorarch/arm/kernel/devtree.c+1 -40 replies
4/21ARM: topology: remove unneeded check for /cpus nodearch/arm/kernel/topology.c+0 -60 replies
5/21ARM: shmobile: use for_each_of_cpu_node iteratorarch/arm/mach-shmobile/pm-rcar-gen2.c arch/arm/mach-shmobile/pm-rmobile.c arch/arm/mach-shmobile/timer.c+5 -152 replies
6/21arm64: use for_each_of_cpu_node iteratorarch/arm64/kernel/smp.c+1 -11 reply
7/21c6x: use for_each_of_cpu_node iteratorarch/c6x/kernel/setup.c+3 -80 replies
8/21microblaze: get cpu node with of_get_cpu_nodearch/microblaze/kernel/cpu/cpuinfo.c+3 -13 replies
9/21nios2: get cpu node with of_get_cpu_nodearch/nios2/kernel/cpuinfo.c+3 -10 replies
10/21openrisc: use for_each_of_cpu_node iteratorarch/openrisc/kernel/setup.c+1 -21 reply
11/21powerpc: use for_each_of_cpu_node iteratorarch/powerpc/platforms/powermac/feature.c arch/powerpc/platforms/powermac/setup.c+26 -400 replies
12/21powerpc: 4xx: get cpu node with of_get_cpu_nodearch/powerpc/platforms/4xx/soc.c+1 -10 replies
13/21powerpc: 8xx: get cpu node with of_get_cpu_nodearch/powerpc/platforms/8xx/m8xx_setup.c+3 -20 replies
14/21riscv: use for_each_of_cpu_node iteratorarch/riscv/kernel/smpboot.c+1 -13 replies
15/21SH: use for_each_of_cpu_node iteratorarch/sh/boards/of-generic.c+1 -10 replies
16/21x86: DT: use for_each_of_cpu_node iteratorarch/x86/kernel/devicetree.c+1 -11 reply
17/21clk: mvebu: use for_each_of_cpu_node iteratordrivers/clk/mvebu/clk-cpu.c+2 -21 reply
18/21edac: cpc925: use for_each_of_cpu_node iteratordrivers/edac/cpc925_edac.c+2 -183 replies
19/21iommu: fsl_pamu: use for_each_of_cpu_node iteratordrivers/iommu/fsl_pamu.c+1 -10 replies
20/21of: use for_each_of_cpu_node iteratordrivers/of/base.c drivers/of/of_numa.c+3 -143 replies
21/21fbdev: fsl-diu: get cpu node with of_get_cpu_nodedrivers/video/fbdev/fsl-diu-fb.c+1 -11 reply

Reviews trailers per patch

9 of 21 patches have a Reviewed-by or Acked-by.

PatchStephen BoydThomas GleixnerGeert UytterhoevenSimon HormanStafford HorneWill DeaconBorislav PetkovMichal SimekTimur TabiPalmer Dabbelt
1/21R-b
2/21
3/21
4/21
5/21R-b R-b
6/21A-b
7/21
8/21T-b
9/21
10/21A-b
11/21
12/21
13/21
14/21A-b
15/21
16/21R-b
17/21A-b
18/21A-b
19/21
20/21
21/21A-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 10 reviewers.

Read the v1 thread

Cover letter [PATCH 00/21] DT cpu node iterator

This series adds an iterator for cpu nodes and converts users over to use it or of_get_cpu_node in some cases. This allows us to remove the dependency on device_type property for cpu nodes though removing that from DTS files will have to wait for some time. In some cases, this makes the DT search more strict by only looking in /cpus child nodes rather than any node with the device_type == cpu. The iterator also honors the status property which is often forgotten.

I've only tested on ARM under QEMU and compiled powerpc.

Rob

Rob Herring (21):
of: Add cpu node iterator for_each_of_cpu_node()
of: Support matching cpu nodes with no 'reg' property
ARM: use for_each_of_cpu_node iterator
ARM: topology: remove unneeded check for /cpus node
ARM: shmobile: use for_each_of_cpu_node iterator
arm64: use for_each_of_cpu_node iterator
c6x: use for_each_of_cpu_node iterator
microblaze: get cpu node with of_get_cpu_node
nios2: get cpu node with of_get_cpu_node
openrisc: use for_each_of_cpu_node iterator
powerpc: use for_each_of_cpu_node iterator
powerpc: 4xx: get cpu node with of_get_cpu_node
powerpc: 8xx: get cpu node with of_get_cpu_node
riscv: use for_each_of_cpu_node iterator
SH: use for_each_of_cpu_node iterator
x86: DT: use for_each_of_cpu_node iterator
clk: mvebu: use for_each_of_cpu_node iterator
edac: cpc925: use for_each_of_cpu_node iterator
iommu: fsl_pamu: use for_each_of_cpu_node iterator
of: use for_each_of_cpu_node iterator
fbdev: fsl-diu: get cpu node with of_get_cpu_node

 arch/arm/kernel/devtree.c                 |  5 +--
 arch/arm/kernel/topology.c                |  6 ---
 arch/arm/mach-shmobile/pm-rcar-gen2.c     |  8 +---
 arch/arm/mach-shmobile/pm-rmobile.c       |  2 +-
 arch/arm/mach-shmobile/timer.c            | 10 +----
 arch/arm64/kernel/smp.c                   |  2 +-
 arch/c6x/kernel/setup.c                   | 11 ++---
 arch/microblaze/kernel/cpu/cpuinfo.c      |  4 +-
 arch/nios2/kernel/cpuinfo.c               |  4 +-
 arch/openrisc/kernel/setup.c              |  3 +-
 arch/powerpc/platforms/4xx/soc.c          |  2 +-
 arch/powerpc/platforms/8xx/m8xx_setup.c   |  5 ++-
 arch/powerpc/platforms/powermac/feature.c | 51 ++++++++---------------
 arch/powerpc/platforms/powermac/setup.c   | 15 +++----
 arch/riscv/kernel/smpboot.c               |  2 +-
 arch/sh/boards/of-generic.c               |  2 +-
 arch/x86/kernel/devicetree.c              |  2 +-
 drivers/clk/mvebu/clk-cpu.c               |  4 +-
 drivers/edac/cpc925_edac.c                | 20 +--------
 drivers/iommu/fsl_pamu.c                  |  2 +-
 drivers/of/base.c                         | 43 ++++++++++++++++++-
 drivers/of/of_numa.c                      | 15 +------
 drivers/video/fbdev/fsl-diu-fb.c          |  2 +-
 include/linux/of.h                        | 11 +++++
 24 files changed, 111 insertions(+), 120 deletions(-)

--
2.17.1