Skip to content

Commit

Permalink
cris: use dma-direct
Browse files Browse the repository at this point in the history
cris currently has an incomplete direct mapping dma_map_ops implementation
if PCI support is enabled.  Replace it with the fully feature generic
dma-direct implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Christoph Hellwig committed Jan 15, 2018
1 parent 1a9777a commit f73337f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 98 deletions.
4 changes: 4 additions & 0 deletions arch/cris/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ config GENERIC_CALIBRATE_DELAY
config NO_IOPORT_MAP
def_bool y if !PCI

config NO_DMA
def_bool y if !PCI

config FORCE_MAX_ZONEORDER
int
default 6
Expand Down Expand Up @@ -72,6 +75,7 @@ config CRIS
select GENERIC_SCHED_CLOCK if ETRAX_ARCH_V32
select HAVE_DEBUG_BUGVERBOSE if ETRAX_ARCH_V32
select HAVE_NMI
select DMA_DIRECT_OPS if PCI

config HZ
int
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/arch-v32/drivers/pci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Makefile for Etrax cardbus driver
#

obj-$(CONFIG_ETRAX_CARDBUS) += bios.o dma.o
obj-$(CONFIG_ETRAX_CARDBUS) += bios.o
77 changes: 0 additions & 77 deletions arch/cris/arch-v32/drivers/pci/dma.c

This file was deleted.

1 change: 1 addition & 0 deletions arch/cris/include/asm/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ generic-y += cmpxchg.h
generic-y += current.h
generic-y += device.h
generic-y += div64.h
generic-y += dma-mapping.h
generic-y += emergency-restart.h
generic-y += exec.h
generic-y += extable.h
Expand Down
20 changes: 0 additions & 20 deletions arch/cris/include/asm/dma-mapping.h

This file was deleted.

0 comments on commit f73337f

Please sign in to comment.