diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-07 07:34:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-14 12:38:34 -0300 |
commit | 426398b15d9f18ce3e7b5c4e657b4c0103dd8389 (patch) | |
tree | 0920c0e570e0f44789f0bd9e2cdd610991c53ca3 /drivers/media/usb/dvb-usb/dibusb.h | |
parent | fa1ecd8dc454fe2d3075a964240f45ceb60cb9e0 (diff) |
[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.h | 3 |
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; |