linux-brain/drivers/zorro
Michael Schmitz ae90d15119 zorro: Set up z->dev.dma_mask for the DMA API
[ Upstream commit 55496d3fe2 ]

The generic DMA API uses dev->dma_mask to check the DMA addressable
memory bitmask, and warns if no mask is set or even allocated.

Set z->dev.dma_coherent_mask on Zorro bus scan, and make z->dev.dma_mask
to point to z->dev.dma_coherent_mask so device drivers that need DMA have
everything set up to avoid warnings from dma_alloc_coherent(). Drivers can
still use dma_set_mask_and_coherent() to explicitly set their DMA bit mask.

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
[geert: Handle Zorro II with 24-bit address space]
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:49:11 +02:00
..
.gitignore m68k: zorro - Add devlist.h and gen-devlist to .gitignore 2009-01-12 20:56:33 +01:00
gen-devlist.c
Kconfig
Makefile zorro: Refactor conditional handling of Zorro device name database 2013-11-26 11:09:06 +01:00
names.c zorro: Use ARRAY_SIZE 2014-07-11 10:38:02 +02:00
proc.c zorro/UAPI: Use proper types (endianness/size) in <linux/zorro.h> 2013-11-26 11:09:09 +01:00
zorro-driver.c zorro: Let the driver core handle device enumeration 2013-11-26 11:09:06 +01:00
zorro-sysfs.c zorro/UAPI: Use proper types (endianness/size) in <linux/zorro.h> 2013-11-26 11:09:09 +01:00
zorro.c zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:49:11 +02:00
zorro.h zorro: Refactor conditional handling of Zorro device name database 2013-11-26 11:09:06 +01:00
zorro.ids misc latin1 to utf8 conversions 2012-01-02 13:04:55 +01:00