Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Ganesan Ramalingam and committed by
Ralf Baechle
35ac7840 afc813ae

+1 -1
+1 -1
arch/mips/netlogic/xlp/usb-init.c
··· 119 119 static void nlm_usb_fixup_final(struct pci_dev *dev) 120 120 { 121 121 dev->dev.dma_mask = &xlp_usb_dmamask; 122 - dev->dev.coherent_dma_mask = DMA_BIT_MASK(64); 122 + dev->dev.coherent_dma_mask = DMA_BIT_MASK(32); 123 123 switch (dev->devfn) { 124 124 case 0x10: 125 125 dev->irq = PIC_EHCI_0_IRQ;