diff options
author | Devin Heitmueller <dheitmueller@linuxtv.org> | 2009-03-22 22:41:28 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:32 -0400 |
commit | 9a4f8201a5d241dd725c1e1c796d826e49dcd396 (patch) | |
tree | 2a96a6e9b2ad759637b8a768821dbac2aa8d686d /drivers/media/video/em28xx | |
parent | f876897015e15e879ad531f78260086a7fdee813 (diff) |
V4L/DVB (11141): em28xx: fix oops on ARM platform when allocating transfer buffers
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.
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index c896d24032f5..8f1999ca4803 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
@@ -982,7 +982,7 @@ int em28xx_init_isoc(struct em28xx *dev, int max_packets, | |||
982 | em28xx_irq_callback, dma_q, 1); | 982 | em28xx_irq_callback, dma_q, 1); |
983 | 983 | ||
984 | urb->number_of_packets = max_packets; | 984 | urb->number_of_packets = max_packets; |
985 | urb->transfer_flags = URB_ISO_ASAP; | 985 | urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP; |
986 | 986 | ||
987 | k = 0; | 987 | k = 0; |
988 | for (j = 0; j < max_packets; j++) { | 988 | for (j = 0; j < max_packets; j++) { |