mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
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>
This commit is contained in:
parent
82c5de0ab8
commit
7753a91e78
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user