On Fri, 27 May 2011, H Hartley Sweeten wrote:

> On Friday, May 27, 2011 3:45 AM, Guennadi Liakhovetski wrote:
> >
> > It is now required, because the SDHI / TMIO driver is using
> > dma_alloc_coherent() to allocate the DMA bounce buffer.
> >
> > Signed-off-by: Guennadi Liakhovetski <[email protected]>
> > ---
> >  arch/arm/mach-shmobile/board-ag5evm.c   |    6 ++++--
> >  arch/arm/mach-shmobile/board-ap4evb.c   |    6 ++++--
> >  arch/arm/mach-shmobile/board-mackerel.c |    9 ++++++---
> >  3 files changed, 14 insertions(+), 7 deletions(-)
> >
> > diff --git a/arch/arm/mach-shmobile/board-ag5evm.c 
> > b/arch/arm/mach-shmobile/board-ag5evm.c
> > index c95258c..a5a737c 100644
> > --- a/arch/arm/mach-shmobile/board-ag5evm.c
> > +++ b/arch/arm/mach-shmobile/board-ag5evm.c
> > @@ -372,7 +372,8 @@ static struct platform_device sdhi0_device = {
> >     .num_resources  = ARRAY_SIZE(sdhi0_resources),
> >     .resource       = sdhi0_resources,
> >     .dev    = {
> > -           .platform_data  = &sdhi0_info,
> > +           .platform_data          = &sdhi0_info,
> > +           .coherent_dma_mask      = 0xffffffff,
> 
> I think these should all be
> 
>               .coherent_dma_mask      = DMA_BIT_MASK(32),

Yes, you're right, I looked at a bad example:( Will post v2 next week. 
Thanks for spotting.

> Also, don't you need the .dma_mask also?

It works without it:) Not sure, if it's needed for some kind of academic 
correctness though.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to