Skip to content

Refactor and enhance device tree platform registrations

Grant Likely linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt: Refactor of_platform_bus_probe()drivers/of/platform.c+18 -370 replies
2/5dt: protect against NULL matches passed to of_match_node()drivers/of/base.c+3 -00 replies
3/5dt: eliminate OF_NO_DEEP_PROBE and test for NULL match tabledrivers/of/platform.c include/linux/of_platform.h+5 -150 replies
4/5dt: add of_platform_populate() for creating device from the device treearch/powerpc/platforms/52xx/mpc52xx_common.c drivers/of/platform.c include/linux/of_platform.h+57 -101 reply
5/5dt: add of_platform_prepare() to match nodes with static platform_devicesarch/arm/mach-versatile/core.c drivers/of/address.c drivers/of/platform.c +2 more+247 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] Refactor and enhance device tree platform registrations

Technically only the last two patches are v2 patches, the first three are cleanups written when they were refactored, and this is a first posting for them.

The most interesting part of this series is the addition of of_platform_prepare() which is useful to allow DT and non-DT board support to share the same initialization code for on-chip platform devices.

---

Grant Likely (5):
dt: Refactor of_platform_bus_probe()
dt: protect against NULL matches passed to of_match_node()
dt: eliminate OF_NO_DEEP_PROBE and test for NULL match table
dt: add of_platform_populate() for creating device from the device tree
dt: add of_platform_prepare() to match nodes with static platform_devices

 arch/arm/mach-versatile/core.c               |    1 
 arch/powerpc/platforms/52xx/mpc52xx_common.c |   10 -
 drivers/of/address.c                         |   14 +
 drivers/of/base.c                            |    3 
 drivers/of/platform.c                        |  347 ++++++++++++++++++++++----
 include/linux/of_address.h                   |    1 
 include/linux/of_platform.h                  |    8 -
 7 files changed, 326 insertions(+), 58 deletions(-)
Signature · 1 line
Signature