Thread (4 messages) flat view 4 messages, 3 authors, 2008-07-08

Re: powerpc: Add proper reference to dma_mask

From: Vitaly Bordug <hidden>
Date: 2008-07-08 12:48:54

=D0=92 Tue, 08 Jul 2008 14:28:11 +1000
Benjamin Herrenschmidt [off-list ref] =D0=BF=D0=B8=D1=88=D0=B5=
=D1=82:
On Tue, 2008-07-08 at 13:54 +1000, Stephen Rothwell wrote:
quoted
Hi Vitaly,
=20
On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug
[off-list ref] wrote:
quoted
+++ b/arch/powerpc/kernel/of_platform.c
@@ -76,6 +76,9 @@ struct of_device*
of_platform_device_create(struct device_node *np, return NULL;
=20
 	dev->dma_mask =3D 0xffffffffUL;
+	dev->dev.dma_mask =3D &dev->dma_mask;
=20
That is done in of_device_alloc which is called just above.
=20
So the problem might just be that coherent_dma_mask isn't set.
=20
I'll check and resubmit, thanks

-Vitaly
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help