Skip to content

Commit 34e04ee

Browse files
author
Christoph Hellwig
committed
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>
1 parent 2b28129 commit 34e04ee

7 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎arch/arc/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ config ARC
4545
select MODULES_USE_ELF_RELA
4646
select OF
4747
select OF_EARLY_FLATTREE
48-
select OF_RESERVED_MEM
4948
select PCI_SYSCALL if PCI
5049
select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING
5150

‎arch/arm/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ config ARM
103103
select MODULES_USE_ELF_REL
104104
select NEED_DMA_MAP_STATE
105105
select OF_EARLY_FLATTREE if OF
106-
select OF_RESERVED_MEM if OF
107106
select OLD_SIGACTION
108107
select OLD_SIGSUSPEND3
109108
select PCI_SYSCALL if PCI

‎arch/arm64/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ config ARM64
165165
select NEED_SG_DMA_LENGTH
166166
select OF
167167
select OF_EARLY_FLATTREE
168-
select OF_RESERVED_MEM
169168
select PCI_DOMAINS_GENERIC if PCI
170169
select PCI_ECAM if (ACPI && PCI)
171170
select PCI_SYSCALL if PCI

‎arch/csky/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ config CSKY
4242
select MODULES_USE_ELF_RELA if MODULES
4343
select OF
4444
select OF_EARLY_FLATTREE
45-
select OF_RESERVED_MEM
4645
select PERF_USE_VMALLOC if CPU_CK610
4746
select RTC_LIB
4847
select TIMER_OF

‎arch/powerpc/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ config PPC
233233
select NEED_SG_DMA_LENGTH
234234
select OF
235235
select OF_EARLY_FLATTREE
236-
select OF_RESERVED_MEM
237236
select OLD_SIGACTION if PPC32
238237
select OLD_SIGSUSPEND
239238
select PCI_DOMAINS if PCI

‎arch/xtensa/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ config USE_OF
447447
bool "Flattened Device Tree support"
448448
select OF
449449
select OF_EARLY_FLATTREE
450-
select OF_RESERVED_MEM
451450
help
452451
Include support for flattened device tree machine descriptions.
453452

‎drivers/of/Kconfig‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ config OF_MDIO
8181
OpenFirmware MDIO bus (Ethernet PHY) accessors
8282

8383
config OF_RESERVED_MEM
84-
depends on OF_EARLY_FLATTREE
8584
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
8887

8988
config OF_RESOLVE
9089
bool

0 commit comments

Comments
 (0)