summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorBrian W Hart <hartb@linux.vnet.ibm.com>2014-07-31 21:24:37 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-05 07:40:54 +0200
commita32305bf90a2ae0e6a9a93370c7616565f75e15a (patch)
tree8b0765787e86f739cb6e3f1d7109d60a47c450cb /arch/powerpc/platforms
parentpowerpc/64e: Add __ref to early_alloc_pgtable() (diff)
downloadlinux-a32305bf90a2ae0e6a9a93370c7616565f75e15a.tar.xz
linux-a32305bf90a2ae0e6a9a93370c7616565f75e15a.zip
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 <hartb@linux.vnet.ibm.com> CC: <stable@vger.kernel.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powernv/pci-ioda.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
index fa3029aba165..866692b851f2 100644
--- a/arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/arch/powerpc/platforms/powernv/pci-ioda.c
@@ -491,6 +491,7 @@ static int pnv_pci_ioda_dma_set_mask(struct pnv_phb *phb,
set_dma_ops(&pdev->dev, &dma_iommu_ops);
set_iommu_table_base(&pdev->dev, &pe->tce32_table);
}
+ *pdev->dev.dma_mask = dma_mask;
return 0;
}