mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA
@ 2015-11-09  9:37 Geert Uytterhoeven
  2015-11-10 16:02 ` atull
  2015-11-10 16:28 ` atull
  0 siblings, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-11-09  9:37 UTC (permalink / raw)
  To: Alan Tull; +Cc: linux-kernel, Geert Uytterhoeven

If NO_DMA=y:

    ERROR: "dma_free_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
    ERROR: "dma_alloc_coherent" [drivers/fpga/zynq-fpga.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/fpga/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
index c9b9fdf6cfbbeb6d..d61410299ec0cf80 100644
--- a/drivers/fpga/Kconfig
+++ b/drivers/fpga/Kconfig
@@ -21,6 +21,7 @@ config FPGA_MGR_SOCFPGA
 
 config FPGA_MGR_ZYNQ_FPGA
 	tristate "Xilinx Zynq FPGA"
+	depends on HAS_DMA
 	help
 	  FPGA manager driver support for Xilinx Zynq FPGAs.
 
-- 
1.9.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA
  2015-11-09  9:37 [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA Geert Uytterhoeven
@ 2015-11-10 16:02 ` atull
  2015-11-10 16:28 ` atull
  1 sibling, 0 replies; 5+ messages in thread
From: atull @ 2015-11-10 16:02 UTC (permalink / raw)
  To: Moritz Fischer <moritz.fischer@ettus.com>, Geert Uytterhoeven
  Cc: linux-kernel

On Mon, 9 Nov 2015, Geert Uytterhoeven wrote:
+ Moritz

> If NO_DMA=y:
> 
>     ERROR: "dma_free_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
>     ERROR: "dma_alloc_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
> 
> Add a dependency on HAS_DMA to fix this.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>  drivers/fpga/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> index c9b9fdf6cfbbeb6d..d61410299ec0cf80 100644
> --- a/drivers/fpga/Kconfig
> +++ b/drivers/fpga/Kconfig
> @@ -21,6 +21,7 @@ config FPGA_MGR_SOCFPGA
>  
>  config FPGA_MGR_ZYNQ_FPGA
>  	tristate "Xilinx Zynq FPGA"
> +	depends on HAS_DMA
>  	help
>  	  FPGA manager driver support for Xilinx Zynq FPGAs.
>  
> -- 
> 1.9.1
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA
  2015-11-09  9:37 [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA Geert Uytterhoeven
  2015-11-10 16:02 ` atull
@ 2015-11-10 16:28 ` atull
  2015-11-10 17:48   ` Moritz Fischer
  1 sibling, 1 reply; 5+ messages in thread
From: atull @ 2015-11-10 16:28 UTC (permalink / raw)
  To: Moritz Fischer, Geert Uytterhoeven; +Cc: linux-kernel

On Mon, 9 Nov 2015, Geert Uytterhoeven wrote:

+Moritz

> If NO_DMA=y:
> 
>     ERROR: "dma_free_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
>     ERROR: "dma_alloc_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
> 
> Add a dependency on HAS_DMA to fix this.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>  drivers/fpga/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> index c9b9fdf6cfbbeb6d..d61410299ec0cf80 100644
> --- a/drivers/fpga/Kconfig
> +++ b/drivers/fpga/Kconfig
> @@ -21,6 +21,7 @@ config FPGA_MGR_SOCFPGA
>  
>  config FPGA_MGR_ZYNQ_FPGA
>  	tristate "Xilinx Zynq FPGA"
> +	depends on HAS_DMA
>  	help
>  	  FPGA manager driver support for Xilinx Zynq FPGAs.
>  
> -- 
> 1.9.1
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA
  2015-11-10 16:28 ` atull
@ 2015-11-10 17:48   ` Moritz Fischer
  2015-11-10 20:44     ` atull
  0 siblings, 1 reply; 5+ messages in thread
From: Moritz Fischer @ 2015-11-10 17:48 UTC (permalink / raw)
  To: atull; +Cc: Geert Uytterhoeven, linux-kernel

Hi Alan, Geert

On Tue, Nov 10, 2015 at 8:28 AM, atull <atull@opensource.altera.com> wrote:
> On Mon, 9 Nov 2015, Geert Uytterhoeven wrote:
>
> +Moritz
>
>> If NO_DMA=y:
>>
>>     ERROR: "dma_free_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
>>     ERROR: "dma_alloc_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
>>
>> Add a dependency on HAS_DMA to fix this.
>>
>> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
>> ---
>>  drivers/fpga/Kconfig | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
>> index c9b9fdf6cfbbeb6d..d61410299ec0cf80 100644
>> --- a/drivers/fpga/Kconfig
>> +++ b/drivers/fpga/Kconfig
>> @@ -21,6 +21,7 @@ config FPGA_MGR_SOCFPGA
>>
>>  config FPGA_MGR_ZYNQ_FPGA
>>       tristate "Xilinx Zynq FPGA"
>> +     depends on HAS_DMA
>>       help
>>         FPGA manager driver support for Xilinx Zynq FPGAs.
>>
>> --
>> 1.9.1
>>
>>

Good catch!

Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>

Alan,

if you don't mind I'll send you (or gregkh?) a patch with adding me as
(co) maintainer, or Reviewer to the MAINTAINERS file so you don't have
to forward manually next time
any more ;-) I doubt Geert's patch caught the last issue in zynq-fpga ;-)

Cheers,

Moritz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA
  2015-11-10 17:48   ` Moritz Fischer
@ 2015-11-10 20:44     ` atull
  0 siblings, 0 replies; 5+ messages in thread
From: atull @ 2015-11-10 20:44 UTC (permalink / raw)
  To: Moritz Fischer; +Cc: Geert Uytterhoeven, linux-kernel

On Tue, 10 Nov 2015, Moritz Fischer wrote:

> Hi Alan, Geert
> 
> On Tue, Nov 10, 2015 at 8:28 AM, atull <atull@opensource.altera.com> wrote:
> > On Mon, 9 Nov 2015, Geert Uytterhoeven wrote:
> >
> > +Moritz
> >
> >> If NO_DMA=y:
> >>
> >>     ERROR: "dma_free_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
> >>     ERROR: "dma_alloc_coherent" [drivers/fpga/zynq-fpga.ko] undefined!
> >>
> >> Add a dependency on HAS_DMA to fix this.
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> >> ---
> >>  drivers/fpga/Kconfig | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> >> index c9b9fdf6cfbbeb6d..d61410299ec0cf80 100644
> >> --- a/drivers/fpga/Kconfig
> >> +++ b/drivers/fpga/Kconfig
> >> @@ -21,6 +21,7 @@ config FPGA_MGR_SOCFPGA
> >>
> >>  config FPGA_MGR_ZYNQ_FPGA
> >>       tristate "Xilinx Zynq FPGA"
> >> +     depends on HAS_DMA
> >>       help
> >>         FPGA manager driver support for Xilinx Zynq FPGAs.
> >>
> >> --
> >> 1.9.1
> >>
> >>
> 
> Good catch!
> 
> Reviewed-by: Moritz Fischer <moritz.fischer@ettus.com>
> 
> Alan,
> 
> if you don't mind I'll send you (or gregkh?) a patch with adding me as
> (co) maintainer, or Reviewer to the MAINTAINERS file so you don't have
> to forward manually next time
> any more ;-) I doubt Geert's patch caught the last issue in zynq-fpga ;-)
> 
> Cheers,
> 
> Moritz
> 

Hi Moritz,

It would be great if you could be added as a Reviewer.  Please submit
the patch to Greg.

Alan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-10 20:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09  9:37 [PATCH] fpga: FPGA_MGR_ZYNQ_FPGA should depend on HAS_DMA Geert Uytterhoeven
2015-11-10 16:02 ` atull
2015-11-10 16:28 ` atull
2015-11-10 17:48   ` Moritz Fischer
2015-11-10 20:44     ` atull

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®