This is an automatic generated email to let you know that the following patch 
were queued:

Subject: [media] Input: atmel_mxt: disallow impossible configuration
Author:  Arnd Bergmann <>
Date:    Mon Sep 12 12:30:32 2016 -0300

The newnly added debug mode for the atmel_mxt_ts driver relies on
the v4l2 interface and vb2_vmalloc, but those might be configured
as loadable modules when the driver itself is built-in, resulting
in a link failure:

drivers/input/touchscreen/atmel_mxt_ts.o: In function `mxt_vidioc_querycap':
atmel_mxt_ts.c:(.text.mxt_vidioc_querycap+0x10): undefined reference to 
drivers/input/touchscreen/atmel_mxt_ts.o: In function `mxt_buffer_queue':
atmel_mxt_ts.c:(.text.mxt_buffer_queue+0x20): undefined reference to 
atmel_mxt_ts.c:(.text.mxt_buffer_queue+0x164): undefined reference to 
drivers/input/touchscreen/atmel_mxt_ts.o: In function `mxt_free_object_table':
atmel_mxt_ts.c:(.text.mxt_free_object_table+0x18): undefined reference to 
atmel_mxt_ts.c:(.text.mxt_free_object_table+0x20): undefined reference to 

The best workaround I could come up with is to disallow the debug
mode unless it's actually possible to call it.

Fixes: ecfdd7e2660e ("[media] Input: atmel_mxt_ts - output diagnostic debug via 
V4L2 device")

Signed-off-by: Arnd Bergmann <>
Acked-by: Nick Dyer <>
Signed-off-by: Hans Verkuil <>
Signed-off-by: Mauro Carvalho Chehab <>

 drivers/input/touchscreen/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/drivers/input/touchscreen/Kconfig 
index 754e6aa0851d..ec41df887278 100644
--- a/drivers/input/touchscreen/Kconfig
+++ b/drivers/input/touchscreen/Kconfig
@@ -117,7 +117,8 @@ config TOUCHSCREEN_ATMEL_MXT
        bool "Support T37 Diagnostic Data"
-       depends on TOUCHSCREEN_ATMEL_MXT && VIDEO_V4L2
+       depends on TOUCHSCREEN_ATMEL_MXT
+       depends on VIDEO_V4L2=y || (TOUCHSCREEN_ATMEL_MXT=m && VIDEO_V4L2=m)
        select VIDEOBUF2_VMALLOC
          Say Y here if you want support to output data from the T37

linuxtv-commits mailing list

Reply via email to