On Tue, 2011-12-20 at 15:45 +0530, Pratyush Anand wrote:> On 12/20/2011 2:51 PM, Vinod Koul wrote:with the split pre-done would we need to do this, hence the referred> > On Thu, 2011-12-15 at 12:26 +0530, Pratyush Anand wrote:>> > Well I am not sure how adding flags handles this?> >> anyway> >>>> That way existing mechanism would work well for you.
> >>>> You need to split the chunks properly, which is what dma would do
> >> dma> >>>>> >>>
> >>> Yes, they can be split like this, but then splitting onus will go on
> >>> user driver, and so there would be replication of similar logic at> >> as
> >>> several places. Therefore, I was thinking to make device_prep_dma_sg
> >>> generic by adding these flags.
> device_prep_dma_sg has last argument as flags. dma user driver can pass
> information about inc/dec of src/dst in this flag, which can be used by
> the dma driver. I have put one such implementation at the end of mail.
implementation.