lkml.org 
[lkml]   [2018]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/5] dma-mapping: move the dma_coherent flag to struct device
On Mon, Sep 10, 2018 at 06:13:50PM +0200, Greg Kroah-Hartman wrote:
> > +#if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \
> > + defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || \
> > + defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL)
> > + bool dma_coherent:1;
> > +#endif
>
> It's just one bit, why not always have it enabled here? If the arch
> uses it or doesn't, no big deal.
>
> Or are you using this to "catch" arches that mess something up?

Yes, that is the intent - I don't want architectures to accidentally
set it while not selecting the non-coherent infrastructure, as it
won't have an effect.

\
 
 \ /
  Last update: 2018-09-11 08:43    [W:0.065 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site