mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 10:29:52 +00:00
bcm2835-dma: only reserve channel 0 if legacy dma driver is enabled
If CONFIG_DMA_BCM2708 isn't enabled there's no need to mask out one of the already scarce DMA channels. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
committed by
popcornmix
parent
5a0f034e67
commit
d7834fe01b
@@ -1286,6 +1286,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev)
|
|||||||
goto err_no_dma;
|
goto err_no_dma;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_DMA_BCM2708
|
||||||
/* One channel is reserved for the legacy API */
|
/* One channel is reserved for the legacy API */
|
||||||
if (chans_available & BCM2835_DMA_BULK_MASK) {
|
if (chans_available & BCM2835_DMA_BULK_MASK) {
|
||||||
rc = bcm_dmaman_probe(pdev, base,
|
rc = bcm_dmaman_probe(pdev, base,
|
||||||
@@ -1296,6 +1297,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
chans_available &= ~BCM2835_DMA_BULK_MASK;
|
chans_available &= ~BCM2835_DMA_BULK_MASK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* And possibly one for the 40-bit DMA memcpy API */
|
/* And possibly one for the 40-bit DMA memcpy API */
|
||||||
if (chans_available & od->cfg_data->chan_40bit_mask &
|
if (chans_available & od->cfg_data->chan_40bit_mask &
|
||||||
|
|||||||
Reference in New Issue
Block a user