diff options
author | Alan Tull <atull@opensource.altera.com> | 2016-11-01 22:14:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-10 19:03:35 +0300 |
commit | 39a842e22c1bf3ec3dce36e01fe8ba8ee66c80c8 (patch) | |
tree | 06def1c123cec59f796d6c1ff983ad768a67eafb /Documentation/fpga/fpga-mgr.txt | |
parent | c1eac0d034d36cfa0da3e35f2add6d6de1e696e5 (diff) | |
download | linux-39a842e22c1bf3ec3dce36e01fe8ba8ee66c80c8.tar.xz |
of/overlay: add of overlay notifications
This patch add of overlay notifications.
When DT overlays are being added, some drivers/subsystems
need to see device tree overlays before the changes go into
the live tree.
This is distinct from reconfig notifiers that are
post-apply or post-remove and which issue very granular
notifications without providing access to the context
of a whole overlay.
The following 4 notificatons are issued:
OF_OVERLAY_PRE_APPLY
OF_OVERLAY_POST_APPLY
OF_OVERLAY_PRE_REMOVE
OF_OVERLAY_POST_REMOVE
In the case of pre-apply notification, if the notifier
returns error, the overlay will be rejected.
This patch exports two functions for registering/unregistering
notifications:
of_overlay_notifier_register(struct notifier_block *nb)
of_overlay_notifier_unregister(struct notifier_block *nb)
The of_mutex is held during these notifications. The
notification data includes pointers to the overlay target
and the overlay:
struct of_overlay_notify_data {
struct device_node *overlay;
struct device_node *target;
};
Signed-off-by: Alan Tull <atull@opensource.altera.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/fpga/fpga-mgr.txt')
0 files changed, 0 insertions, 0 deletions