summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-22 22:39:12 -0400
committerDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-22 22:39:12 -0400
commit2413031a7724106ce8294abc566587691b04dc25 (patch)
treef1439997dbc6b2dd6a5e9a86ebf24c6983d5854c
parent95a062b34a2c47e2c835863577939dee4d5e60a6 (diff)
downloadmediapointer-dvb-s2-2413031a7724106ce8294abc566587691b04dc25.tar.gz
mediapointer-dvb-s2-2413031a7724106ce8294abc566587691b04dc25.tar.bz2
usbvision: fix oops on ARM platform when allocating transfer buffers
From: Devin Heitmueller <dheitmueller@linuxtv.org> Add missing URB_NO_TRANSFER_DMA_MAP flag, since the use of consistent memory is not permitted for DMA on the ARM platform. Thanks to Paul Thomas <pthomas8589@gmail.com> for providing sample ARM hardware that was experiencing the oops (tested on the at91rm9200 based LinuxStamp). Thanks to David Brownell <david-b@pacbell.net> for providing insight into the ARM memory architecture. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
-rw-r--r--linux/drivers/media/video/usbvision/usbvision-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-core.c b/linux/drivers/media/video/usbvision/usbvision-core.c
index 7fe361668..734df263f 100644
--- a/linux/drivers/media/video/usbvision/usbvision-core.c
+++ b/linux/drivers/media/video/usbvision/usbvision-core.c
@@ -2524,7 +2524,7 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
urb->dev = dev;
urb->context = usbvision;
urb->pipe = usb_rcvisocpipe(dev, usbvision->video_endp);
- urb->transfer_flags = URB_ISO_ASAP;
+ urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP;
urb->interval = 1;
urb->transfer_buffer = usbvision->sbuf[bufIdx].data;
urb->complete = usbvision_isocIrq;