Re: [PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-28 Thread Christoph Hellwig
On Wed, Feb 27, 2019 at 04:15:37PM +0200, Andy Shevchenko wrote: > > https://patchwork.kernel.org/patch/10814527/ > > > > But, I can rework this patch to work without the helper. > > Ah, okay, worth to mention this in comments (in addition to what you > put about the patch below). Just include

Re: [PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-28 Thread Ardelean, Alexandru
On Wed, 2019-02-27 at 16:15 +0200, Andy Shevchenko wrote: > [External] > > > On Wed, Feb 27, 2019 at 2:26 PM Ardelean, Alexandru > wrote: > > > > On Wed, 2019-02-27 at 11:46 +0200, Andy Shevchenko wrote: > > > [External] > > > > > > > > > +Cc Vinod > > > > > > On Wed, Feb 27, 2019 at 11:45

Re: [PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-27 Thread Andy Shevchenko
On Wed, Feb 27, 2019 at 2:26 PM Ardelean, Alexandru wrote: > > On Wed, 2019-02-27 at 11:46 +0200, Andy Shevchenko wrote: > > [External] > > > > > > +Cc Vinod > > > > On Wed, Feb 27, 2019 at 11:45 AM Andy Shevchenko > > wrote: > > > > > > On Wed, Feb 27, 2019 at 10:51 AM Alexandru Ardelean > > >

Re: [PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-27 Thread Ardelean, Alexandru
On Wed, 2019-02-27 at 11:46 +0200, Andy Shevchenko wrote: > [External] > > > +Cc Vinod > > On Wed, Feb 27, 2019 at 11:45 AM Andy Shevchenko > wrote: > > > > On Wed, Feb 27, 2019 at 10:51 AM Alexandru Ardelean > > wrote: > > > > > > From: Andy Shevchenko > > > > > > Sometimes the user

Re: [PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-27 Thread Andy Shevchenko
+Cc Vinod On Wed, Feb 27, 2019 at 11:45 AM Andy Shevchenko wrote: > > On Wed, Feb 27, 2019 at 10:51 AM Alexandru Ardelean > wrote: > > > > From: Andy Shevchenko > > > > Sometimes the user needs to split each entry on the mapped scatter list > > due to DMA length constrains. This helper returns

Re: [PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-27 Thread Andy Shevchenko
On Wed, Feb 27, 2019 at 10:51 AM Alexandru Ardelean wrote: > > From: Andy Shevchenko > > Sometimes the user needs to split each entry on the mapped scatter list > due to DMA length constrains. This helper returns a number of entities > assuming that each of them is not bigger than supplied

[PATCH] lib/scatterlist: introduce sg_nents_for_dma() helper

2019-02-27 Thread Alexandru Ardelean
From: Andy Shevchenko Sometimes the user needs to split each entry on the mapped scatter list due to DMA length constrains. This helper returns a number of entities assuming that each of them is not bigger than supplied maximum length. Signed-off-by: Andy Shevchenko Signed-off-by: Alexandru