Skip to content

Commit a32305b

Browse files
Brian W Hartozbenh
authored andcommitted
powerpc/powernv: Update dev->dma_mask in pci_set_dma_mask() path
powerpc defines various machine-specific routines for handling pci_set_dma_mask(). The routines for machine "PowerNV" may neglect to set dev->dma_mask. This could confuse anyone (e.g. drivers) that consult dev->dma_mask to find the current mask. Set the dma_mask in the PowerNV leaf routine. Signed-off-by: Brian W. Hart <[email protected]> CC: <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent 7d17622 commit a32305b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/platforms/powernv/pci-ioda.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ static int pnv_pci_ioda_dma_set_mask(struct pnv_phb *phb,
491491
set_dma_ops(&pdev->dev, &dma_iommu_ops);
492492
set_iommu_table_base(&pdev->dev, &pe->tce32_table);
493493
}
494+
*pdev->dev.dma_mask = dma_mask;
494495
return 0;
495496
}
496497

0 commit comments

Comments
 (0)