Skip to content

Commit 06e472a

Browse files
sreekanthbrcmmartinkpetersen
authored andcommitted
scsi: mpt3sas: 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/20221028091655.17741-2-sreekanth.reddy@broadcom.com Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 094226a commit 06e472a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/mpt3sas/mpt3sas_base.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2992,8 +2992,7 @@ _base_config_dma_addressing(struct MPT3SAS_ADAPTER *ioc, struct pci_dev *pdev)
29922992
struct sysinfo s;
29932993
u64 coherent_dma_mask, dma_mask;
29942994

2995-
if (ioc->is_mcpu_endpoint || sizeof(dma_addr_t) == 4 ||
2996-
dma_get_required_mask(&pdev->dev) <= DMA_BIT_MASK(32)) {
2995+
if (ioc->is_mcpu_endpoint || sizeof(dma_addr_t) == 4) {
29972996
ioc->dma_mask = 32;
29982997
coherent_dma_mask = dma_mask = DMA_BIT_MASK(32);
29992998
/* Set 63 bit DMA mask for all SAS3 and SAS35 controllers */

0 commit comments

Comments
 (0)