static inline int dma_set_coherent_mask(struct device *dev, u64 mask) { if (!dma_supported(dev, mask)) return -EIO;
dev->coherent_dma_mask = mask; return 0; }