lkml.org 
[lkml]   [2011]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC patch] DMA engine/Langwell: process pending descriptors
    From
    Date
    On Wed, 2011-07-27 at 21:24 +0800, Hillf Danton wrote:
    > Descriptors could be added onto the queue list, though pending descriptors are
    > checked in intel_mid_dma_issue_pending(), they are not processed by scanning
    > the queue list.
    > In this work scanning the queue list is added in midc_scan_descriptors().
    >
    > Signed-off-by: Hillf Danton <dhillf@gmail.com>
    > ---
    > drivers/dma/intel_mid_dma.c | 5 ++++-
    > 1 files changed, 4 insertions(+), 1 deletions(-)
    >
    > diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
    > index f653517..a176fb9 100644
    > --- a/drivers/dma/intel_mid_dma.c
    > +++ b/drivers/dma/intel_mid_dma.c
    > @@ -338,8 +338,11 @@ static void midc_scan_descriptors(struct
    > middma_device *mid,
    Here again!!!

    Pls fix your mailer to not screw patches :(
    Also when sending a bunch of patches, ensure you send as a patch series

    > if (desc->status == DMA_IN_PROGRESS)
    > midc_descriptor_complete(midc, desc);
    > }
    > - return;
    > + list_for_each_entry_safe(desc, _desc, &midc->queue, desc_node) {
    > + if (desc->status == DMA_IN_PROGRESS)
    > + midc_descriptor_complete(midc, desc);
    > }
    > +}
    > /**
    > * midc_lli_fill_sg - Helper function to convert
    > * SG list to Linked List Items.
    > --
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/


    --
    ~Vinod



    \
     
     \ /
      Last update: 2011-08-08 19:31    [W:0.031 / U:2.360 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site