Skip to content

ppc32: use the default of_platform_default_populate_init() for 83xx boards

Kevin Hao linux-devicetree linuxppc-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5of/platform: introduce arch_want_default_of_probe()arch/powerpc/kernel/of_platform.c drivers/of/platform.c include/linux/of_platform.h+12 -30 replies
2/5powerpc: introduce arch_enable_default_of_probe()arch/powerpc/include/asm/setup.h arch/powerpc/kernel/of_platform.c+9 -10 replies
3/5of/platform: introduce a generic way to declare a platform busdrivers/of/platform.c include/asm-generic/vmlinux.lds.h include/linux/of.h +1 more+40 -13 replies
4/5powerpc/83xx: factor out the common codes of setup arch functionsarch/powerpc/platforms/83xx/asp834x.c arch/powerpc/platforms/83xx/km83xx.c arch/powerpc/platforms/83xx/misc.c +12 more+22 -510 replies
5/5powerpc/83xx: enable the default of probearch/powerpc/platforms/83xx/asp834x.c arch/powerpc/platforms/83xx/km83xx.c arch/powerpc/platforms/83xx/misc.c +12 more+8 -540 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] ppc32: use the default of_platform_default_populate_init() for 83xx boards

Hi,

This is a follow on patch series of [1]. This tries to drop the arch specific codes of bus probe by using the common of_platform_default_populate_init() function. I just took the 83xx boards as an example. If you guys think that this is doable, I can change the remaining ppc boards to use this method for the of probe.

[1] https://patchwork.ozlabs.org/patch/658531/

Kevin Hao (5):
of/platform: introduce arch_want_default_of_probe()
powerpc: introduce arch_enable_default_of_probe() of/platform: introduce a generic way to declare a platform bus powerpc/83xx: factor out the common codes of setup arch functions powerpc/83xx: enable the default of probe

 arch/powerpc/include/asm/setup.h          |  1 +
 arch/powerpc/kernel/of_platform.c         | 12 +++++++++++
 arch/powerpc/platforms/83xx/asp834x.c     |  6 +-----
 arch/powerpc/platforms/83xx/km83xx.c      |  7 +------
 arch/powerpc/platforms/83xx/misc.c        | 33 +++++++++++++++----------------
 arch/powerpc/platforms/83xx/mpc830x_rdb.c |  7 +------
 arch/powerpc/platforms/83xx/mpc831x_rdb.c |  7 +------
 arch/powerpc/platforms/83xx/mpc832x_mds.c |  7 +------
 arch/powerpc/platforms/83xx/mpc832x_rdb.c |  7 +------
 arch/powerpc/platforms/83xx/mpc834x_itx.c | 17 +---------------
 arch/powerpc/platforms/83xx/mpc834x_mds.c |  7 +------
 arch/powerpc/platforms/83xx/mpc836x_mds.c |  7 +------
 arch/powerpc/platforms/83xx/mpc836x_rdk.c |  7 +------
 arch/powerpc/platforms/83xx/mpc837x_mds.c |  7 +------
 arch/powerpc/platforms/83xx/mpc837x_rdb.c |  7 +------
 arch/powerpc/platforms/83xx/mpc83xx.h     |  2 +-
 arch/powerpc/platforms/83xx/sbc834x.c     |  7 +------
 drivers/of/platform.c                     | 21 ++++++++++++++++----
 include/asm-generic/vmlinux.lds.h         |  2 ++
 include/linux/of.h                        | 22 +++++++++++++++++++++
 include/linux/of_platform.h               |  6 ++++++
 21 files changed, 90 insertions(+), 109 deletions(-)
Signature · 6 lines
2.5.5

--
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