Skip to content

of overlay callbacks

Alan Tull linux-devicetree lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1of/overlay: of overlay callbacksdrivers/of/overlay.c include/linux/of.h+120 -17 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/1] of overlay callbacks

[Resend as patch/cover letter got separated yesterday]

Adding functionality for registering callbacks with the of overlay code.

This will be useful for drivers responding to overlays and will allow their implementations to not use reconfig notifiers. Also the reconfig notifiers are too late as they go out after the overlay has been added to the live tree.

My use of the overlay callback is to control FPGA programming from a DT overlay. The overlay would contain the FPGA image file name and the child device information. My FPGA code gets the pre-apply callback and attempts to program the FPGA. If the programming failed, the callback can return an error and prevent the overlay from being applied. If FPGA programming succeeds, the overlay will continue and be added to the live tree. The child devices in the overlay will get populated and probed.

I've tested this with code that uses pre-apply and post-remove handlers. Tested on next-20160216 and Pantelis' current bbb-overlays branch.

Alan Tull (1):
of/overlay: of overlay callbacks

 drivers/of/overlay.c |   90 +++++++++++++++++++++++++++++++++++++++++++++++++-
 include/linux/of.h   |   31 +++++++++++++++++
 2 files changed, 120 insertions(+), 1 deletion(-)
Signature · 6 lines
1.7.9.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