aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorLi Zhong <zhong@linux.vnet.ibm.com>2013-11-28 04:22:25 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-03-06 23:50:12 -0500
commit10862a0c71bff5c7b88812d6a9a9c0be56bc659a (patch)
treec171ccf1dc24d11fe203ad2084e48476558580bc /arch/powerpc/kernel
parent847443774b8b4187c7abbb3ed45683249a5ab884 (diff)
powerpc: Revert c6102609 and replace it with the correct fix for vio dma mask setting
This patch reverts my previous "fix", and replace it with the correct fix from Russell. And as Russell pointed out -- dma_set_mask_and_coherent() (and the other dma_set_mask() functions) are really supposed to be used by drivers only. Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/vio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index 826d8bd9e522..904c66128fae 100644
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -1432,7 +1432,8 @@ struct vio_dev *vio_register_device_node(struct device_node *of_node)
1432 1432
1433 /* needed to ensure proper operation of coherent allocations 1433 /* needed to ensure proper operation of coherent allocations
1434 * later, in case driver doesn't set it explicitly */ 1434 * later, in case driver doesn't set it explicitly */
1435 dma_coerce_mask_and_coherent(&viodev->dev, DMA_BIT_MASK(64)); 1435 viodev->dev.coherent_dma_mask = DMA_BIT_MASK(64);
1436 viodev->dev.dma_mask = &viodev->dev.coherent_dma_mask;
1436 } 1437 }
1437 1438
1438 /* register with generic device framework */ 1439 /* register with generic device framework */