Re: [PATCH/RFC] DMA engine driver for Marvell XOR engine

From: saeed
Date: Sun Jul 06 2008 - 07:16:59 EST



> The admittedly ugly do { } while () loop in iop-adma.c assumed that
> num_descs_in_pool is always > 1, and guarantees that idx is equal to
> the count of allocated descriptors. Since you changed it to a simple
> while() loop then you should also replace idx with ->slots_allocated
> in the rest of the routine i.e.:
>
> return mv_chan->slots_allocated ? : -ENOMEM;
done.
Here is the updated patch:
--------------------->8