]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
MIPS: Netlogic: Fix USB block's coherent DMA mask
authorGanesan Ramalingam <ganesanr@broadcom.com>
Wed, 17 Jul 2013 10:27:25 +0000 (10:27 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 19 Jul 2013 08:23:14 +0000 (10:23 +0200)
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: Ganesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: Jayachandran C. <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5596/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/netlogic/xlp/usb-init.c

index 9c401dd78337384d1d95050c26ad3b38935d3f50..ef3897ef0dc711d05ea06383b2080f17d2eaa643 100644 (file)
@@ -119,7 +119,7 @@ static u64 xlp_usb_dmamask = ~(u32)0;
 static void nlm_usb_fixup_final(struct pci_dev *dev)
 {
        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) {
        case 0x10:
                dev->irq = PIC_EHCI_0_IRQ;