u-boot/doc/develop/driver-model
Simon Glass 0b58eaa89c dm: core: Allow copying ofnode property data when writing
At present ofnode_write_prop() is inconsistent between livetree and
flattree, in that livetree requires the caller to ensure the property
value is stable (e.g. in rodata or allocated) but flattree does not, since
it makes a copy.

This makes the API call a bit painful to use, since the caller must do
different things depending on OF_LIVE.

Add a new 'copy' argument which tells the function to make a copy if
needed. Add some tests to cover this behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
2022-09-29 22:43:43 -04:00
..
bind.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
debugging.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
design.rst doc: dm: clarify activation. 2022-08-20 08:38:12 +02:00
ethernet.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
fdt-fixup.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
fs_firmware_loader.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
i2c-howto.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
index.rst doc: develop: Convert README.nvme to reST 2021-06-23 17:21:14 +08:00
livetree.rst dm: core: Allow copying ofnode property data when writing 2022-09-29 22:43:43 -04:00
migration.rst blk: Rename HAVE_BLOCK_DEVICE 2022-09-16 11:05:16 -04:00
nvme.rst nvme: Split out PCI support 2022-02-10 16:44:23 -05:00
of-plat.rst linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
pci-info.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
pmic-framework.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
remoteproc-framework.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
serial-howto.rst arm: Remove PXA architecture support 2022-07-07 09:29:08 -04:00
soc-framework.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
spi-howto.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
usb-info.rst doc: Move driver model docs under develop/ 2021-03-26 17:03:10 +13:00
virtio.rst doc: develop: Convert README.virtio to reST 2021-05-10 13:56:12 +08:00