openwrtv3/target/linux/brcm2708/patches-4.4/0023-bcm2835-dma-Fix-dreq-not-set-for-slave-transfers.patch
John Crispin b3dc9566a4 brcm2708: switch to linux 4.4 and update patches
As usual these patches were extracted from:
https://github.com/raspberrypi/linux/commits/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

SVN-Revision: 48765
2016-02-25 10:14:01 +00:00

21 lines
570 B
Diff

From a8f6a0a5ad90dd940fffcd73311abb1aae8acfcc Mon Sep 17 00:00:00 2001
From: Matthias Reichl <hias@horus.com>
Date: Sat, 10 Oct 2015 12:29:18 +0200
Subject: [PATCH 023/156] bcm2835-dma: Fix dreq not set for slave transfers
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;
}