lkml.org 
[lkml]   [2011]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[RFC patch resend] DMA engine/Langwell: process pending descriptors
From
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. Now it is added.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/drivers/dma/intel_mid_dma.c Sat Aug 13 11:44:46 2011
+++ intel_mid_dma.c Sat Aug 13 11:52:35 2011
@@ -338,8 +338,12 @@ static void midc_scan_descriptors(struct
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.

\
 
 \ /
  Last update: 2011-08-13 05:59    [W:0.050 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site