]> asedeno.scripts.mit.edu Git - linux.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)
commitc6e5485e0cb509292a14e880e1944143f99758c7
treebb47b8947a6d5ad49f74373a15dd063a368b7888
parent7811eade247cdf90b26dd0951613e77614192771
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