2016-12-02 10:50:26 +00:00
|
|
|
From 79b7365ee2e49034a96061e91c4aaa3f9e37eabd Mon Sep 17 00:00:00 2001
|
2016-01-17 10:42:23 +00:00
|
|
|
From: Matthias Reichl <hias@horus.com>
|
|
|
|
Date: Sat, 10 Oct 2015 12:29:18 +0200
|
2016-09-10 12:54:26 +00:00
|
|
|
Subject: [PATCH] bcm2835-dma: Fix dreq not set for slave transfers
|
2016-01-17 10:42:23 +00:00
|
|
|
|
|
|
|
Set dreq to slave_id if it is not set like in bcm2708-dmaengine.
|
|
|
|
---
|
|
|
|
drivers/dma/bcm2835-dma.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/dma/bcm2835-dma.c
|
|
|
|
+++ b/drivers/dma/bcm2835-dma.c
|
|
|
|
@@ -657,6 +657,8 @@ static int bcm2835_dma_slave_config(stru
|
|
|
|
}
|
|
|
|
|
|
|
|
c->cfg = *cfg;
|
|
|
|
+ if (!c->dreq)
|
|
|
|
+ c->dreq = cfg->slave_id;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|