Set correct DMA mask for ax24xx hardware

parent c244830a
......@@ -2359,6 +2359,16 @@ static int __devinit a24xx_init_one(struct pci_dev *pdev, const struct pci_devic
wc->index = index;
// Set the DMA mask appropriately
if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)) || dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32))) {
if (wc_dev->freeregion) {
release_mem_region(wc_dev->mem_region, wc_dev->mem_len);
iounmap((void *)wc_dev->mem32);
dev_warn(&wc_dev->dev->dev, "No suitable DMA available.\n");
return -EIO;
/* Allocate enough memory for two dahdi chunks, receive and transmit. Each sample uses
8 bits. */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment