ccio: allow large DMA masks
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Feb 2019 17:17:33 +0000 (18:17 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Feb 2019 14:27:42 +0000 (07:27 -0700)
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>
drivers/parisc/ccio-dma.c

index 8d2fc84119c6f854a2fbf6834f8eb2db16c334d0..24a68fb7b2f9d8d74f8ad5ed9a1a8a98638cfe3b 100644 (file)
@@ -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);
 }
 
 /**