The patch number 11141 was added via Devin Heitmueller 
<dheitmuel...@linuxtv.org>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Devin Heitmueller  <dheitmuel...@linuxtv.org>
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 <pthomas8...@gmail.com> for providing sample ARM
hardware that was experiencing the oops (tested on the at91rm9200 based
LinuxStamp).

Thanks to David Brownell <davi...@pacbell.net> for providing insight into the
ARM memory architecture.

Priority: high

Signed-off-by: Devin Heitmueller <dheitmuel...@linuxtv.org>


---

 linux/drivers/media/video/em28xx/em28xx-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r 4d9cb8c8ee32 -r d76ca4c6fa6b 
linux/drivers/media/video/em28xx/em28xx-core.c
--- a/linux/drivers/media/video/em28xx/em28xx-core.c    Sun Mar 22 22:39:12 
2009 -0400
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c    Sun Mar 22 22:41:28 
2009 -0400
@@ -991,7 +991,7 @@ int em28xx_init_isoc(struct em28xx *dev,
                                 em28xx_irq_callback, dma_q, 1);
 
                urb->number_of_packets = max_packets;
-               urb->transfer_flags = URB_ISO_ASAP;
+               urb->transfer_flags = URB_ISO_ASAP | URB_NO_TRANSFER_DMA_MAP;
 
                k = 0;
                for (j = 0; j < max_packets; j++) {


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d76ca4c6fa6b9aab8298161f149a2a17a0b6b188

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to