summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb/dibusb.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-07 07:34:36 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-14 12:38:34 -0300
commit426398b15d9f18ce3e7b5c4e657b4c0103dd8389 (patch)
tree0920c0e570e0f44789f0bd9e2cdd610991c53ca3 /drivers/media/usb/dvb-usb/dibusb.h
parentfa1ecd8dc454fe2d3075a964240f45ceb60cb9e0 (diff)
downloadblackbird-op-linux-426398b15d9f18ce3e7b5c4e657b4c0103dd8389.tar.gz
blackbird-op-linux-426398b15d9f18ce3e7b5c4e657b4c0103dd8389.zip
[media] dibusb: don't do DMA on stack
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. Reviewed-by: Patrick Boettcher <patrick.boettcher@posteo.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb/dibusb.h')
-rw-r--r--drivers/media/usb/dvb-usb/dibusb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb/dibusb.h b/drivers/media/usb/dvb-usb/dibusb.h
index 3f82163d8ab8..697be2a17ade 100644
--- a/drivers/media/usb/dvb-usb/dibusb.h
+++ b/drivers/media/usb/dvb-usb/dibusb.h
@@ -96,6 +96,9 @@
#define DIBUSB_IOCTL_CMD_ENABLE_STREAM 0x01
#define DIBUSB_IOCTL_CMD_DISABLE_STREAM 0x02
+/* Max transfer size done by I2C transfer functions */
+#define MAX_XFER_SIZE 64
+
struct dibusb_state {
struct dib_fe_xfer_ops ops;
int mt2060_present;
OpenPOWER on IntegriCloud