Commit c9175716 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] set ide pci dma mask

Make IDE set the dma mask to full 32-bit dma.
parent bac4650d
...@@ -331,6 +331,17 @@ static int ide_pci_enable(struct pci_dev *dev, ide_pci_device_t *d) ...@@ -331,6 +331,17 @@ static int ide_pci_enable(struct pci_dev *dev, ide_pci_device_t *d)
} else } else
printk(KERN_WARNING "%s: Not fully BIOS configured!\n", d->name); printk(KERN_WARNING "%s: Not fully BIOS configured!\n", d->name);
} }
/*
* assume all devices can do 32-bit dma for now. we can add a
* dma mask field to the ide_pci_device_t if we need it (or let
* lower level driver set the dma mask)
*/
if (pci_set_dma_mask(dev, 0xffffffff)) {
printk(KERN_ERR "%s: can't set dma mask\n", d->name);
return -EBUSY;
}
/* FIXME: Temporary - until we put in the hotplug interface logic /* FIXME: Temporary - until we put in the hotplug interface logic
Check that the bits we want are not in use by someone else */ Check that the bits we want are not in use by someone else */
if (pci_request_region(dev, 4, "ide_tmp")) if (pci_request_region(dev, 4, "ide_tmp"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment