how to specify dma_mask and coherent_dma_mask in hwmod

Paul Walmsley paul at pwsan.com
Thu Jun 28 12:32:46 EDT 2012


On Thu, 28 Jun 2012, Bedia, Vaibhav wrote:

> On Thu, Jun 28, 2012 at 21:22:54, Paul Walmsley wrote:
> [...]
> > 
> > dma_mask and coherent_dma_mask can be specified during 
> > device creation.  See usb_musb_init() in arch/arm/mach-omap2/usb-musb.c 
> > for an example.
> > 
> 
> Thanks for pointing this out. Should omap_device_build() start handling this
> or would that be an overkill?

If both dma_mask and coherent_dma_mask are always 0xffffffff on all OMAPs 
and we can set that safely even for devices that don't use it, then yeah 
it sounds like we should set it.

Care to send a patch?


- Paul



More information about the linux-arm-kernel mailing list