|
@@ -756,10 +756,10 @@ static int nv_adma_slave_config(struct scsi_device *sdev)
|
|
blk_queue_bounce_limit(sdev1->request_queue,
|
|
blk_queue_bounce_limit(sdev1->request_queue,
|
|
ATA_DMA_MASK);
|
|
ATA_DMA_MASK);
|
|
|
|
|
|
- pci_set_dma_mask(pdev, ATA_DMA_MASK);
|
|
|
|
|
|
+ dma_set_mask(&pdev->dev, ATA_DMA_MASK);
|
|
} else {
|
|
} else {
|
|
/** This shouldn't fail as it was set to this value before */
|
|
/** This shouldn't fail as it was set to this value before */
|
|
- pci_set_dma_mask(pdev, pp->adma_dma_mask);
|
|
|
|
|
|
+ dma_set_mask(&pdev->dev, pp->adma_dma_mask);
|
|
if (sdev0)
|
|
if (sdev0)
|
|
blk_queue_bounce_limit(sdev0->request_queue,
|
|
blk_queue_bounce_limit(sdev0->request_queue,
|
|
pp->adma_dma_mask);
|
|
pp->adma_dma_mask);
|
|
@@ -1133,10 +1133,10 @@ static int nv_adma_port_start(struct ata_port *ap)
|
|
|
|
|
|
/* Ensure DMA mask is set to 32-bit before allocating legacy PRD and
|
|
/* Ensure DMA mask is set to 32-bit before allocating legacy PRD and
|
|
pad buffers */
|
|
pad buffers */
|
|
- rc = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
|
|
|
|
|
|
+ rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
|
|
if (rc)
|
|
if (rc)
|
|
return rc;
|
|
return rc;
|
|
- rc = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
|
|
|
|
|
|
+ rc = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32));
|
|
if (rc)
|
|
if (rc)
|
|
return rc;
|
|
return rc;
|
|
|
|
|
|
@@ -1161,8 +1161,8 @@ static int nv_adma_port_start(struct ata_port *ap)
|
|
These are allowed to fail since we store the value that ends up
|
|
These are allowed to fail since we store the value that ends up
|
|
being used to set as the bounce limit in slave_config later if
|
|
being used to set as the bounce limit in slave_config later if
|
|
needed. */
|
|
needed. */
|
|
- pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
|
|
|
|
- pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
|
|
|
|
|
|
+ dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
|
|
|
|
+ dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64));
|
|
pp->adma_dma_mask = *dev->dma_mask;
|
|
pp->adma_dma_mask = *dev->dma_mask;
|
|
|
|
|
|
mem = dmam_alloc_coherent(dev, NV_ADMA_PORT_PRIV_DMA_SZ,
|
|
mem = dmam_alloc_coherent(dev, NV_ADMA_PORT_PRIV_DMA_SZ,
|