* [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE should depend on HAS_DMA
@ 2015-02-12 14:11 Geert Uytterhoeven
2015-02-12 14:11 ` [PATCH 2/2] [media] timberdale: VIDEO_TIMBERDALE " Geert Uytterhoeven
2015-02-12 14:30 ` [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE " Lad, Prabhakar
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2015-02-12 14:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Hans Verkuil
Cc: Arnd Bergmann, linux-media, linux-kernel, Geert Uytterhoeven
If NO_DMA=y:
warning: (VIDEO_AM437X_VPFE && VIDEO_DM365_VPFE && VIDEO_DT3155 && VIDEO_OMAP4) selects VIDEOBUF2_DMA_CONTIG which has unmet direct dependencies (MEDIA_SUPPORT && HAS_DMA)
drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’:
drivers/media/v4l2-core/videobuf2-dma-contig.c:207: error: implicit declaration of function ‘dma_mmap_coherent’
drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_get_base_sgt’:
drivers/media/v4l2-core/videobuf2-dma-contig.c:390: error: implicit declaration of function ‘dma_get_sgtable’
VIDEO_AM437X_VPFE selects VIDEOBUF2_DMA_CONTIG, which bypasses its
dependency on HAS_DMA. Make VIDEO_AM437X_VPFE depend on HAS_DMA to fix
this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
drivers/media/platform/am437x/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/am437x/Kconfig b/drivers/media/platform/am437x/Kconfig
index 7b023a76e32ebabc..42d9c186710a6423 100644
--- a/drivers/media/platform/am437x/Kconfig
+++ b/drivers/media/platform/am437x/Kconfig
@@ -1,6 +1,6 @@
config VIDEO_AM437X_VPFE
tristate "TI AM437x VPFE video capture driver"
- depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
+ depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA
depends on SOC_AM43XX || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG
help
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] [media] timberdale: VIDEO_TIMBERDALE should depend on HAS_DMA
2015-02-12 14:11 [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE should depend on HAS_DMA Geert Uytterhoeven
@ 2015-02-12 14:11 ` Geert Uytterhoeven
2015-02-12 14:30 ` [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE " Lad, Prabhakar
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2015-02-12 14:11 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Hans Verkuil
Cc: Arnd Bergmann, linux-media, linux-kernel, Geert Uytterhoeven
If NO_DMA=y:
warning: (VIDEO_OMAP2_VOUT && VIDEO_VIU && VIDEO_TIMBERDALE) selects VIDEOBUF_DMA_CONTIG which has unmet direct dependencies (MEDIA_SUPPORT && HAS_DMA)
drivers/built-in.o: In function `__videobuf_dc_free':
videobuf-dma-contig.c:(.text+0x6f4d32): undefined reference to `dma_free_coherent'
drivers/built-in.o: In function `__videobuf_dc_alloc':
videobuf-dma-contig.c:(.text+0x6f4fe6): undefined reference to `dma_alloc_coherent'
drivers/built-in.o: In function `__videobuf_mmap_mapper':
videobuf-dma-contig.c:(.text+0x6f518e): undefined reference to `dma_free_coherent'
Commit 244829226f47ffb4 ("[media] timberdale: do not select TIMB_DMA")
dropped the dependency of VIDEO_TIMBERDALE on DMADEVICES, and thus the
implicit dependency on HAS_DMA. VIDEO_TIMBERDALE selects
VIDEOBUF_DMA_CONTIG, which bypasses its dependency on HAS_DMA. Make
VIDEO_TIMBERDALE depend on HAS_DMA to fix this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
drivers/media/platform/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index d9b872b9285a3460..2e30be55d17a7db2 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -56,7 +56,7 @@ config VIDEO_VIU
config VIDEO_TIMBERDALE
tristate "Support for timberdale Video In/LogiWIN"
- depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
+ depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API && HAS_DMA
depends on (MFD_TIMBERDALE && TIMB_DMA) || COMPILE_TEST
select VIDEO_ADV7180
select VIDEOBUF_DMA_CONTIG
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE should depend on HAS_DMA
2015-02-12 14:11 [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE should depend on HAS_DMA Geert Uytterhoeven
2015-02-12 14:11 ` [PATCH 2/2] [media] timberdale: VIDEO_TIMBERDALE " Geert Uytterhoeven
@ 2015-02-12 14:30 ` Lad, Prabhakar
1 sibling, 0 replies; 3+ messages in thread
From: Lad, Prabhakar @ 2015-02-12 14:30 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Mauro Carvalho Chehab, Hans Verkuil, Arnd Bergmann, linux-media, LKML
On Thu, Feb 12, 2015 at 2:11 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> If NO_DMA=y:
>
> warning: (VIDEO_AM437X_VPFE && VIDEO_DM365_VPFE && VIDEO_DT3155 && VIDEO_OMAP4) selects VIDEOBUF2_DMA_CONTIG which has unmet direct dependencies (MEDIA_SUPPORT && HAS_DMA)
>
> drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’:
> drivers/media/v4l2-core/videobuf2-dma-contig.c:207: error: implicit declaration of function ‘dma_mmap_coherent’
> drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_get_base_sgt’:
> drivers/media/v4l2-core/videobuf2-dma-contig.c:390: error: implicit declaration of function ‘dma_get_sgtable’
>
> VIDEO_AM437X_VPFE selects VIDEOBUF2_DMA_CONTIG, which bypasses its
> dependency on HAS_DMA. Make VIDEO_AM437X_VPFE depend on HAS_DMA to fix
> this.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Regards,
--Prabhakar Lad
> ---
> drivers/media/platform/am437x/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/am437x/Kconfig b/drivers/media/platform/am437x/Kconfig
> index 7b023a76e32ebabc..42d9c186710a6423 100644
> --- a/drivers/media/platform/am437x/Kconfig
> +++ b/drivers/media/platform/am437x/Kconfig
> @@ -1,6 +1,6 @@
> config VIDEO_AM437X_VPFE
> tristate "TI AM437x VPFE video capture driver"
> - depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
> + depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAS_DMA
> depends on SOC_AM43XX || COMPILE_TEST
> select VIDEOBUF2_DMA_CONTIG
> help
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-12 14:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12 14:11 [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE should depend on HAS_DMA Geert Uytterhoeven
2015-02-12 14:11 ` [PATCH 2/2] [media] timberdale: VIDEO_TIMBERDALE " Geert Uytterhoeven
2015-02-12 14:30 ` [PATCH 1/2] [media] am437x: VIDEO_AM437X_VPFE " Lad, Prabhakar
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®