summaryrefslogtreecommitdiffstats
path: root/arch/mips/pci
diff options
context:
space:
mode:
authorChristoph Hellwig2018-06-15 13:08:34 +0200
committerPaul Burton2018-06-24 18:26:02 +0200
commit97f9f9763a7a431e04f0ffd4e62d0d288a59f908 (patch)
tree0c271746236c660dfb5485dafa6288439c12d494 /arch/mips/pci
parentMIPS: Octeon: unexport __phys_to_dma and __dma_to_phys (diff)
downloadkernel-qcow2-linux-97f9f9763a7a431e04f0ffd4e62d0d288a59f908.tar.gz
kernel-qcow2-linux-97f9f9763a7a431e04f0ffd4e62d0d288a59f908.tar.xz
kernel-qcow2-linux-97f9f9763a7a431e04f0ffd4e62d0d288a59f908.zip
MIPS: Octeon: refactor swiotlb code
Share a common set of swiotlb operations, and to instead branch out in __phys_to_dma/__dma_to_phys for the PCI vs non-PCI case. Also use const structures for the PCI methods so that attackers can't use them as exploit vectors. Signed-off-by: Christoph Hellwig <hch@lst.de> Patchwork: https://patchwork.linux-mips.org/patch/19532/ Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: David Daney <david.daney@cavium.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: Tom Bogendoerfer <tsbogend@alpha.franken.de> Cc: Huacai Chen <chenhc@lemote.com> Cc: iommu@lists.linux-foundation.org Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/pci')
-rw-r--r--arch/mips/pci/pci-octeon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/pci/pci-octeon.c b/arch/mips/pci/pci-octeon.c
index 3e92a06fa772..a20697df3539 100644
--- a/arch/mips/pci/pci-octeon.c
+++ b/arch/mips/pci/pci-octeon.c
@@ -166,8 +166,6 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
pci_write_config_dword(dev, pos + PCI_ERR_ROOT_STATUS, dconfig);
}
- dev->dev.dma_ops = octeon_pci_dma_map_ops;
-
return 0;
}