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

Mark Brown
2016-03-30T16:52:42Z

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]

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 transfer size).

This seems nice. Should we also have a further helper on top of this
which will get constraints from a dmaengine, it seems like it'd be a
common need?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]