mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
bcm2835-dma: Fix dreq not set for slave transfers
Set dreq to slave_id if it is not set like in bcm2708-dmaengine.
This commit is contained in:
committed by
popcornmix
parent
28e77e1a31
commit
8ad957e866
@@ -657,6 +657,8 @@ static int bcm2835_dma_slave_config(struct dma_chan *chan,
|
|||||||
}
|
}
|
||||||
|
|
||||||
c->cfg = *cfg;
|
c->cfg = *cfg;
|
||||||
|
if (!c->dreq)
|
||||||
|
c->dreq = cfg->slave_id;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user