Commit 35ac7840 authored by Ganesan Ramalingam's avatar Ganesan Ramalingam Committed by Ralf Baechle

MIPS: Netlogic: Fix USB block's coherent DMA mask

The on-chip USB controller on Netlogic XLP does not suppport
DMA beyond 32-bit physical address. Set the coherent_dma_mask
of the USB in its PCI fixup to support this.
Signed-off-by: default avatarGanesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: default avatarJayachandran C. <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5596/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent afc813ae
...@@ -119,7 +119,7 @@ static u64 xlp_usb_dmamask = ~(u32)0; ...@@ -119,7 +119,7 @@ static u64 xlp_usb_dmamask = ~(u32)0;
static void nlm_usb_fixup_final(struct pci_dev *dev) static void nlm_usb_fixup_final(struct pci_dev *dev)
{ {
dev->dev.dma_mask = &xlp_usb_dmamask; dev->dev.dma_mask = &xlp_usb_dmamask;
dev->dev.coherent_dma_mask = DMA_BIT_MASK(64); dev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
switch (dev->devfn) { switch (dev->devfn) {
case 0x10: case 0x10:
dev->irq = PIC_EHCI_0_IRQ; dev->irq = PIC_EHCI_0_IRQ;
......
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