powerpc: Add proper reference to dma_mask

Vitaly Bordug vitb at kernel.crashing.org
Tue Jul 8 22:48:29 EST 2008


В Tue, 08 Jul 2008 14:28:11 +1000
Benjamin Herrenschmidt <benh at kernel.crashing.org> пишет:

> On Tue, 2008-07-08 at 13:54 +1000, Stephen Rothwell wrote:
> > Hi Vitaly,
> > 
> > On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug
> > <vitb at kernel.crashing.org> wrote:
> > >
> > > +++ b/arch/powerpc/kernel/of_platform.c
> > > @@ -76,6 +76,9 @@ struct of_device*
> > > of_platform_device_create(struct device_node *np, return NULL;
> > >  
> > >  	dev->dma_mask = 0xffffffffUL;
> > > +	dev->dev.dma_mask = &dev->dma_mask;
> > 
> > That is done in of_device_alloc which is called just above.
> 
> So the problem might just be that coherent_dma_mask isn't set.
> 

I'll check and resubmit, thanks

-Vitaly



More information about the Linuxppc-dev mailing list