2b1c6b21b5
As usual these patches were extracted and rebased from the raspberry pi repo: https://github.com/raspberrypi/linux/tree/rpi-4.4.y Also adds support for Raspberry Pi Compute Module 3 (untested). Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
21 lines
562 B
Diff
21 lines
562 B
Diff
From 93e23eca701dfbf20def2a598af43d64c39bd9b8 Mon Sep 17 00:00:00 2001
|
|
From: Matthias Reichl <hias@horus.com>
|
|
Date: Sat, 10 Oct 2015 12:29:18 +0200
|
|
Subject: [PATCH] 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;
|
|
}
|