Skip to content

firmware: of: populate /firmware/ node during init

Sudeep Holla linux-amlogic linux-arm-kernel linux-arm-msm linux-devicetree lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 3/34 patches 5 repliesIn review
  2. v1 posting 2/30 of 4 patches 1 replySuperseded
  3. v1 posting 1/33 patches 9 repliesSuperseded

Patches in v1 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4of: platform: populate /firmware/ node from of_platform_default_populate_init()drivers/of/platform.c+4 -04 replies
2/4firmware: qcom_scm: drop redandant of_platform_populatedrivers/firmware/qcom_scm.c+0 -240 replies
3/4drivers: tee: rework optee_driver_{init,exit} to use platform devicedrivers/tee/optee/core.c+25 -490 replies
4/4firmware: meson-sm: rework meson_sm_init to use module_platform_driver_probedrivers/firmware/meson/meson_sm.c+12 -90 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRob HerringBjorn Andersson
1/4A-b A-b T-b
2/4
3/4
4/4

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

Read the v1 thread

Cover letter [RESEND][PATCH 0/4] firmware: of: populate /firmware/ node during init

Hi Rob, Arnd,

There's a push to place all firmware related device node under /firmware/ node. However all the associated drivers are dealing with device creation in their own ways. For example, qcom_scm, optee and meson-sm drivers deal with the node in their own way. The SCMI drivers I am about to add also needs to do the same. This small series is to make it generic so that all the users of /firmware/ node need not repeat the same.

There was concern that /firmware in DT is fit for /sys/firmware in sysfs. IMO anything exposed to userspace from such firmware interface must be in "/sys/firmware", but I don't see any issue with kernel handling them as platform device/driver internally.

Sudeep Holla (4):
of: platform: populate /firmware/ node from
of_platform_default_populate_init()
firmware: qcom_scm: drop redandant of_platform_populate
drivers: tee: rework optee_driver_{init,exit} to use platform device
firmware: meson-sm: rework meson_sm_init to use
module_platform_driver_probe

 drivers/firmware/meson/meson_sm.c | 21 ++++++-----
 drivers/firmware/qcom_scm.c       | 24 -------------
 drivers/of/platform.c             |  4 +++
 drivers/tee/optee/core.c          | 74 +++++++++++++--------------------------
 4 files changed, 41 insertions(+), 82 deletions(-)

--
2.7.4