On Feb 20, 2012 4:31 PM, "Catalin Marinas" <catalin.marinas@arm.com> wrote:
>
> On 16 February 2012 18:14, viresh kumar <viresh.linux@gmail.com> wrote:
> > On Thu, Feb 16, 2012 at 9:48 AM, Catalin Marinas
> > <catalin.marinas@arm.com> wrote:
> >> The DMA API implementation on ARM takes care of the cache cleaning and
> >> invalidating.
> >
> > I believe that this is the reason why we have cache re-invalidation
> > (we invalidated
> > it in dma_map_*() earlier) in dma_unmap_*() calls for ARMv6+ for
> > DMA_FROM_DEVICE.
> > Am i Correct?
>
> Yes.
>
But why isn't keeping only the second one sufficient? Why don't we remove it from dma_map_* routines?
--
Viresh