scsi: mpi3mr: Remove usage of dma_get_required_mask() API
Remove the usage of dma_get_required_mask() API. Directly set the DMA mask to 63/64 if the system is a 64bit machine. Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Link: https://lore.kernel.org/r/20221111102246.19995-2-sreekanth.reddy@broadcom.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
06e472acf9
commit
d347a95190
|
@ -3633,8 +3633,7 @@ int mpi3mr_setup_resources(struct mpi3mr_ioc *mrioc)
|
|||
int i, retval = 0, capb = 0;
|
||||
u16 message_control;
|
||||
u64 dma_mask = mrioc->dma_mask ? mrioc->dma_mask :
|
||||
(((dma_get_required_mask(&pdev->dev) > DMA_BIT_MASK(32)) &&
|
||||
(sizeof(dma_addr_t) > 4)) ? DMA_BIT_MASK(64) : DMA_BIT_MASK(32));
|
||||
((sizeof(dma_addr_t) > 4) ? DMA_BIT_MASK(64) : DMA_BIT_MASK(32));
|
||||
|
||||
if (pci_enable_device_mem(pdev)) {
|
||||
ioc_err(mrioc, "pci_enable_device_mem: failed\n");
|
||||
|
|
Loading…
Reference in New Issue