Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-04-05 Thread Dave Gordon
On 30/03/16 19:18, Boris Brezillon wrote: On Wed, 30 Mar 2016 09:51:43 -0700 Mark Brown wrote: On Wed, Mar 30, 2016 at 05:39:51PM +0200, Boris Brezillon wrote: sg_alloc_table_from_buf() provides an easy solution to create an sg_table from a virtual address pointer. This function takes care of

Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Mark Brown
On Wed, Mar 30, 2016 at 08:18:31PM +0200, Boris Brezillon wrote: > BTW, do you see other things that should be added in sg_constraints? It looked to do everything SPI does which is everything I know about. signature.asc Description: PGP signature

Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Boris Brezillon
On Wed, 30 Mar 2016 09:51:43 -0700 Mark Brown wrote: > On Wed, Mar 30, 2016 at 05:39:51PM +0200, Boris Brezillon wrote: > > sg_alloc_table_from_buf() provides an easy solution to create an sg_table > > from a virtual address pointer. This function takes care of dealing with > > vmallocated buffer

Re: [PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Mark Brown
On Wed, Mar 30, 2016 at 05:39:51PM +0200, Boris Brezillon wrote: > sg_alloc_table_from_buf() provides an easy solution to create an sg_table > from a virtual address pointer. This function takes care of dealing with > vmallocated buffers, buffer alignment, or DMA engine limitations (maximum > DMA t

[PATCH v2 4/7] scatterlist: add sg_alloc_table_from_buf() helper

2016-03-30 Thread Boris Brezillon
sg_alloc_table_from_buf() provides an easy solution to create an sg_table from a virtual address pointer. This function takes care of dealing with vmallocated buffers, buffer alignment, or DMA engine limitations (maximum DMA transfer size). Signed-off-by: Boris Brezillon --- include/linux/scatte