aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/b2c2/flexcop-usb.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-10 07:55:54 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-14 12:52:29 -0300
commitb430eaba0be5eb7140d0065df96982fa6b5ccc1d (patch)
treee8d9041dc807713c09d74b53b1485ad1dab0eb55 /drivers/media/usb/b2c2/flexcop-usb.h
parent[media] stk-webcam: don't use stack for DMA (diff)
downloadlinux-dev-b430eaba0be5eb7140d0065df96982fa6b5ccc1d.tar.xz
linux-dev-b430eaba0be5eb7140d0065df96982fa6b5ccc1d.zip
[media] flexcop-usb: don't use stack for DMA
The USB control messages require DMA to work. We cannot pass a stack-allocated buffer, as it is not warranted that the stack would be into a DMA enabled area. While here, remove a dead function calling usb_control_msg(). Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to '')
-rw-r--r--drivers/media/usb/b2c2/flexcop-usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/b2c2/flexcop-usb.h b/drivers/media/usb/b2c2/flexcop-usb.h
index 92529a9c4475..25ad43166e78 100644
--- a/drivers/media/usb/b2c2/flexcop-usb.h
+++ b/drivers/media/usb/b2c2/flexcop-usb.h
@@ -29,6 +29,10 @@ struct flexcop_usb {
u8 tmp_buffer[1023+190];
int tmp_buffer_length;
+
+ /* for URB control messages */
+ u8 data[80];
+ struct mutex data_mutex;
};
#if 0