aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/of_reserved_mem.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-05-27 17:32:17 -0500
committerRob Herring <robh@kernel.org>2021-06-02 20:59:28 -0500
commit1ee292a66e8199d234c8f8fa5cd3d2fef16fc97d (patch)
tree0cd92b74a793e2f49c0cb88b65d473a4b8f9c710 /include/linux/of_reserved_mem.h
parentdt-bindings: reset: update ti,sci-reset.yaml references (diff)
downloadwireguard-linux-1ee292a66e8199d234c8f8fa5cd3d2fef16fc97d.tar.xz
wireguard-linux-1ee292a66e8199d234c8f8fa5cd3d2fef16fc97d.zip
of: Drop reserved mem dependency on DMA_DECLARE_COHERENT and DMA_CMA
Reserved memory regions can be used for more than just DMA regions, so only enabling on DMA_DECLARE_COHERENT (via HAS_DMA) or DMA_CMA is wrong. This effectively doesn't matter except for the few cases arches select NO_DMA. At least, these users of RESERVEDMEM_OF_DECLARE depend on reserved memory support: arch/riscv/mm/init.c:RESERVEDMEM_OF_DECLARE(elfcorehdr, "linux,elfcorehdr", elfcore_hdr_setup); drivers/memory/tegra/tegra210-emc-table.c:RESERVEDMEM_OF_DECLARE(tegra210_emc_table, "nvidia,tegra210-emc-table", drivers/soc/fsl/qbman/bman_ccsr.c:RESERVEDMEM_OF_DECLARE(bman_fbpr, "fsl,bman-fbpr", bman_fbpr); drivers/soc/fsl/qbman/qman_ccsr.c:RESERVEDMEM_OF_DECLARE(qman_fqd, "fsl,qman-fqd", qman_fqd); drivers/soc/fsl/qbman/qman_ccsr.c:RESERVEDMEM_OF_DECLARE(qman_pfdr, "fsl,qman-pfdr", qman_pfdr); Let's simplify things and enable OF_RESERVED_MEM when OF_EARLY_FLATTREE is enabled. Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210527223217.1572631-1-robh@kernel.org
Diffstat (limited to 'include/linux/of_reserved_mem.h')
0 files changed, 0 insertions, 0 deletions