kernel-ark/drivers/of
Pantelis Antoniou d8c5008841 of: Create unlocked versions of node and property add/remove functions
The DT overlay code will need to manipulate nodes and properties while
already holding the devicetree lock, or on nodes that are not yet
attached to the tree, but the current helper functions don't allow that.
Extract the core behaviour from the accessors and create the following
unlocked variants.

The unlocked variants require either the lock to already be held or for
the nodes to be detached from the tree. Changes to live nodes will not
get updated in sysfs, so the caller must arrange for housekeeping to
take place after dropping the lock.

The new functions are: __of_add_property(), __of_remove_property(),
__of_update_property(), __of_attach_node() and __of_detach_node().

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
[Remove unnecessary diff hunks and rewrite commit text]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
2014-07-16 08:16:52 -06:00
..
testcase-data of: Add a testcase for of_find_node_by_path() 2014-05-23 11:35:30 +09:00
address.c Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into next 2014-06-05 15:57:04 -07:00
base.c of: Create unlocked versions of node and property add/remove functions 2014-07-16 08:16:52 -06:00
device.c of: rename of_aliases_mutex to just of_mutex 2014-07-07 13:42:52 +01:00
dynamic.c of: Create unlocked versions of node and property add/remove functions 2014-07-16 08:16:52 -06:00
fdt_address.c of/fdt: add FDT address translation support 2014-05-20 15:19:25 -05:00
fdt.c of: Check for phys_addr_t overflows in early_init_dt_add_memory_arch 2014-06-26 17:28:28 +01:00
irq.c of/irq: do irq resolution in platform_get_irq_byname() 2014-05-23 11:40:25 +09:00
Kconfig of/fdt: Convert FDT functions to use libfdt 2014-04-30 00:59:15 -05:00
Makefile of: Move CONFIG_OF_DYNAMIC code into a separate file 2014-07-07 13:59:45 +01:00
of_mdio.c of: mdio: fixup of_phy_register_fixed_link parsing of new bindings 2014-06-22 21:35:14 -07:00
of_mtd.c of_mtd: Add helpers to get ECC strength and ECC step size 2014-03-10 22:42:28 -07:00
of_net.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-04-02 20:53:45 -07:00
of_pci_irq.c of_pci_irq: kill useless variable in of_irq_parse_pci() 2014-05-27 12:13:34 +01:00
of_pci.c of: implement pci_address_to_pio as weak function 2013-10-09 20:04:06 -05:00
of_private.h of: Create unlocked versions of node and property add/remove functions 2014-07-16 08:16:52 -06:00
of_reserved_mem.c of: align RESERVEDMEM_OF_DECLARE function callbacks to other callbacks 2014-05-20 14:25:21 -05:00
pdt.c of: device_node kobject lifecycle fixes 2014-03-19 14:58:40 +00:00
platform.c of/platform: Fix of_platform_device_destroy iteration of devices 2014-07-07 13:33:46 +01:00
selftest.c OF: Utility helper functions for dynamic nodes 2014-07-16 08:16:17 -06:00