Re: [RFCv5 PATCH 03/15] vb2-dma-sg: move dma_(un)map_sg here

2014-11-08 Thread Pawel Osciak
Hi Hans, Thank you for the patch. On Fri, Nov 7, 2014 at 5:50 PM, Hans Verkuil hverk...@xs4all.nl wrote: From: Hans Verkuil hans.verk...@cisco.com This moves dma_(un)map_sg to the get_userptr/put_userptr and alloc/put memops of videobuf2-dma-sg.c and adds dma_sync_sg_for_device/cpu to the

[RFCv5 PATCH 03/15] vb2-dma-sg: move dma_(un)map_sg here

2014-11-07 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This moves dma_(un)map_sg to the get_userptr/put_userptr and alloc/put memops of videobuf2-dma-sg.c and adds dma_sync_sg_for_device/cpu to the prepare/finish memops. Now that vb2-dma-sg will sync the buffers for you in the prepare/finish memops we can