Skip to content

Commit cd57d07

Browse files
Christoph HellwigRich Felker
authored andcommitted
sh: don't allow non-coherent DMA for NOMMU
The code handling non-coherent DMA depends on being able to remap code as non-cached. But that can't be done without an MMU, so using this option on NOMMU builds is broken. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Rich Felker <[email protected]>
1 parent 846f9e1 commit cd57d07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/sh/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ config SUPERH
6161
select MAY_HAVE_SPARSE_IRQ
6262
select MODULES_USE_ELF_RELA
6363
select NEED_SG_DMA_LENGTH
64+
select NO_DMA if !MMU && !DMA_COHERENT
6465
select NO_GENERIC_PCI_IOPORT_MAP if PCI
6566
select OLD_SIGACTION
6667
select OLD_SIGSUSPEND
@@ -135,7 +136,7 @@ config DMA_COHERENT
135136
bool
136137

137138
config DMA_NONCOHERENT
138-
def_bool !DMA_COHERENT
139+
def_bool !NO_DMA && !DMA_COHERENT
139140
select ARCH_HAS_SYNC_DMA_FOR_DEVICE
140141

141142
config PGTABLE_LEVELS

0 commit comments

Comments
 (0)