[media] videobuf2-dma-sg: Support io userptr operations on io memory
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Tue, 26 Nov 2013 12:58:44 +0000 (09:58 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 9 Dec 2013 13:45:08 +0000 (11:45 -0200)
commit50ac952d2263bd5d7812acf1839d57c34c6f8d9f
tree00113b7b00be74a86053646ca5bccfdf9c245d18
parent1380f5754cb0cc4b765629b153fc0e7030b86da2
[media] videobuf2-dma-sg: Support io userptr operations on io memory

Memory exported via remap_pfn_range cannot be remapped via
get_user_pages.
Other videobuf2 methods (like the dma-contig) supports io memory.
This patch adds support for this kind of memory.
v2: Comments by Marek Szyprowski
-Use vb2_get_vma and vb2_put_vma

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-dma-sg.c