Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: select OF_RESERVED_MEM automatically

The OF_RESERVED_MEM can be used if we have either CMA or the generic
declare coherent code built and we support the early flattened DT.

So don't bother making it a user visible options that is selected
by most configs that fit the above category, but just select it when
the requirements are met.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Rob Herring <robh@kernel.org>

+2 -9
-1
arch/arc/Kconfig
··· 45 45 select MODULES_USE_ELF_RELA 46 46 select OF 47 47 select OF_EARLY_FLATTREE 48 - select OF_RESERVED_MEM 49 48 select PCI_SYSCALL if PCI 50 49 select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING 51 50
-1
arch/arm/Kconfig
··· 103 103 select MODULES_USE_ELF_REL 104 104 select NEED_DMA_MAP_STATE 105 105 select OF_EARLY_FLATTREE if OF 106 - select OF_RESERVED_MEM if OF 107 106 select OLD_SIGACTION 108 107 select OLD_SIGSUSPEND3 109 108 select PCI_SYSCALL if PCI
-1
arch/arm64/Kconfig
··· 165 165 select NEED_SG_DMA_LENGTH 166 166 select OF 167 167 select OF_EARLY_FLATTREE 168 - select OF_RESERVED_MEM 169 168 select PCI_DOMAINS_GENERIC if PCI 170 169 select PCI_ECAM if (ACPI && PCI) 171 170 select PCI_SYSCALL if PCI
-1
arch/csky/Kconfig
··· 42 42 select MODULES_USE_ELF_RELA if MODULES 43 43 select OF 44 44 select OF_EARLY_FLATTREE 45 - select OF_RESERVED_MEM 46 45 select PERF_USE_VMALLOC if CPU_CK610 47 46 select RTC_LIB 48 47 select TIMER_OF
-1
arch/powerpc/Kconfig
··· 233 233 select NEED_SG_DMA_LENGTH 234 234 select OF 235 235 select OF_EARLY_FLATTREE 236 - select OF_RESERVED_MEM 237 236 select OLD_SIGACTION if PPC32 238 237 select OLD_SIGSUSPEND 239 238 select PCI_DOMAINS if PCI
-1
arch/xtensa/Kconfig
··· 447 447 bool "Flattened Device Tree support" 448 448 select OF 449 449 select OF_EARLY_FLATTREE 450 - select OF_RESERVED_MEM 451 450 help 452 451 Include support for flattened device tree machine descriptions. 453 452
+2 -3
drivers/of/Kconfig
··· 81 81 OpenFirmware MDIO bus (Ethernet PHY) accessors 82 82 83 83 config OF_RESERVED_MEM 84 - depends on OF_EARLY_FLATTREE 85 84 bool 86 - help 87 - Helpers to allow for reservation of memory regions 85 + depends on OF_EARLY_FLATTREE 86 + default y if HAVE_GENERIC_DMA_COHERENT || DMA_CMA 88 87 89 88 config OF_RESOLVE 90 89 bool