Commit 8552b5b4 authored by Steven J. Hill's avatar Steven J. Hill Committed by Ralf Baechle

MIPS: Octeon: Put restrictions on DMA descriptors.

Set the DMA mask such that all descriptors stay in the
lower 4GB of memory.
Signed-off-by: default avatarSteven J. Hill <steven.hill@cavium.com>
Acked-by: default avatarDavid Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13830/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 71471e28
...@@ -311,7 +311,11 @@ static struct usb_ehci_pdata octeon_ehci_pdata = { ...@@ -311,7 +311,11 @@ static struct usb_ehci_pdata octeon_ehci_pdata = {
#ifdef __BIG_ENDIAN #ifdef __BIG_ENDIAN
.big_endian_mmio = 1, .big_endian_mmio = 1,
#endif #endif
.dma_mask_64 = 1, /*
* We can DMA from anywhere. But the descriptors must be in
* the lower 4GB.
*/
.dma_mask_64 = 0,
.power_on = octeon_ehci_power_on, .power_on = octeon_ehci_power_on,
.power_off = octeon_ehci_power_off, .power_off = octeon_ehci_power_off,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment