]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl_pci: simplify fsl_pci_dma_set_mask
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Nov 2018 08:23:07 +0000 (09:23 +0100)
committerScott Wood <oss@buserror.net>
Sat, 22 Dec 2018 02:09:24 +0000 (20:09 -0600)
commit18b269c63e35e47c01770d3838f3a68c24165c81
treebb47b8947a6d5ad49f74373a15dd063a368b7888
parentec60f9043bd620774a5a5800f4b3f79db28aebb0
powerpc/fsl_pci: simplify fsl_pci_dma_set_mask

swiotlb will only bounce buffer when the effective dma address for the
device is smaller than the actual DMA range.  Instead of flipping between
the swiotlb and nommu ops for FSL SOCs that have the second outbound
window just don't set the bus dma_mask in this case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/sysdev/fsl_pci.c