summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/ccio-dma.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-02-14 18:17:33 +0100
committerChristoph Hellwig <hch@lst.de>2019-02-20 07:27:42 -0700
commit7753a91e78811f6fcefc9f59630286a698b814b2 (patch)
treec53add651b3555c00d25034a73233e2551ea0569 /drivers/parisc/ccio-dma.c
parent82c5de0ab8dbd6035223ad69e76bd8a88a0a9399 (diff)
downloadlinux-7753a91e78811f6fcefc9f59630286a698b814b2.tar.bz2
ccio: allow large DMA masks
There is no harm in setting a 64-bit mask even if we don't need it, and the current ccio code is one of the few place in the kernel still rejecting larger than required DMA masks. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/parisc/ccio-dma.c')
-rw-r--r--drivers/parisc/ccio-dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
index 8d2fc84119c6..24a68fb7b2f9 100644
--- a/drivers/parisc/ccio-dma.c
+++ b/drivers/parisc/ccio-dma.c
@@ -710,8 +710,8 @@ ccio_dma_supported(struct device *dev, u64 mask)
return 0;
}
- /* only support 32-bit devices (ie PCI/GSC) */
- return (int)(mask == 0xffffffffUL);
+ /* only support 32-bit or better devices (ie PCI/GSC) */
+ return (int)(mask >= 0xffffffffUL);
}
/**