summaryrefslogtreecommitdiff
path: root/drivers/dma/dw/regs.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2016-04-14 18:11:01 +0200
committerVinod Koul <vinod.koul@intel.com>2016-04-19 21:14:45 +0530
commitab703f818ac36b9e74f61b8890f14e5446b7c012 (patch)
tree7cb8fed4ecd9b3eb9044f8a3a9224685004cb8e3 /drivers/dma/dw/regs.h
parent925a7d045e6f0129bc58ccd4c3a8dcef62486345 (diff)
dmaengine: dw: lazy allocation of dma descriptors
This patch changes the driver to allocate DMA descriptors when needed. This stops memory resources to be wasted and letting them sit idle in the free_list structure when the device doesn't need it... This also solves the problem, that a driver has to guess the number of how many descriptors it needs to allocate in advance. Currently, the dma engine will just fail when put under load by sata_dwc_460ex. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/regs.h')
-rw-r--r--drivers/dma/dw/regs.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/dw/regs.h b/drivers/dma/dw/regs.h
index 96f498188257..0ab02eb23bfc 100644
--- a/drivers/dma/dw/regs.h
+++ b/drivers/dma/dw/regs.h
@@ -236,7 +236,6 @@ struct dw_dma_chan {
unsigned long flags;
struct list_head active_list;
struct list_head queue;
- struct list_head free_list;
struct dw_cyclic_desc *cdesc;
unsigned int descs_allocated;