platform/x86: dell_rbu: stop abusing the DMA API
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Jan 2019 07:34:09 +0000 (08:34 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 23 Feb 2019 17:20:25 +0000 (09:20 -0800)
commitfd47a36fba257b91d4a0bdc2f94fe323e8819c2f
treedf4412966847ad549e180d5eabb1e46337b5e8f3
parent4d9b2864a415fec39150bc13efc730c7eb88711e
platform/x86: dell_rbu: stop abusing the DMA API

For some odd reason dell_rbu actually seems to want the physical and
not a bus address for the allocated buffer.  Lets assume that actually
is correct given that it is BIOS-related and that is a good source
of insanity.  In that case we should not use dma_alloc_coherent with
a NULL device to allocate memory, but use GFP_DMA32 to stay under
the 32-bit BIOS limit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Stuart Hayes <stuart.w.hayes@gmail.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/dell_rbu.c