Re: [PATCH 27/30] dmaengine: tegra-apb: enable COMPILE_TEST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 16, 2016 at 09:39:29AM +0200, Arnd Bergmann wrote:
> On Thursday, September 15, 2016 10:06:05 PM CEST Jon Hunter wrote:
> > On 15/09/16 18:34, Vinod Koul wrote:
> > > To get more coverage, enable COMPILE_TEST for this driver.
> > > 
> > > Cc: Jon Hunter <jonathanh@xxxxxxxxxx>
> > > Signed-off-by: Vinod Koul <vinod.koul@xxxxxxxxx>
> > > ---
> > >  drivers/dma/Kconfig | 5 +++--
> > >  1 file changed, 3 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
> > > index 60341185a6b9..878277865ed0 100644
> > > --- a/drivers/dma/Kconfig
> > > +++ b/drivers/dma/Kconfig
> > > @@ -483,8 +483,9 @@ config TEGRA20_APB_DMA
> > >         or vice versa. It does not support memory to memory data transfer.
> > >  
> > >  config TEGRA210_ADMA
> > > -     bool "NVIDIA Tegra210 ADMA support"
> > > -     depends on ARCH_TEGRA_210_SOC
> > > +     bool "NVIDIA Tegra210 ADMA support" if COMPILE_TEST && !ARCH_TEGRA_210_SOC
> > > +     default ARCH_TEGRA_210_SOC
> > > +     depends on ARCH_ARM
> > 
> > This should be ...
> > 
> >         depends on ARM64
> > 
> >  ... because Tegra210 is ARM64 and not ARM and we will not be able to
> > enable for Tegra210 with the above 
> > 
> > Also, can you correct the $subject as this is "tegra-adma" and not
> > "tegra-apb".
> > 
> 
> Note that "ARCH_ARM" is not a valid Kconfig symbol, unlike "ARM" and "ARM64".

Okay so here is bit ugly syntax as we can enable COMPILE_TEST only for ARM
platforms. Better suggestions welcome..

config TEGRA210_ADMA
        bool "NVIDIA Tegra210 ADMA support"
        depends on ARCH_TEGRA_210_SOC || (ARM && COMPILE_TEST)
        select DMA_ENGINE
        select DMA_VIRTUAL_CHANNELS
        select PM_CLK


Thanks
-- 
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux