0023-bcm2835-dma-Fix-dreq-not-set-for-slave-transfers.patch 562 B

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