mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-18 11:30:53 +09:00
spi: tegra: Use shared DMA channel
To avoid running out of DMA channels, use the shared DMA channel for all four Tegra spi controllers. Change-Id: Iff644253cf7fae36aa2e42321a1ded35a728da4f Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
@@ -530,7 +530,8 @@ static int __init spi_tegra_probe(struct platform_device *pdev)
|
||||
|
||||
INIT_LIST_HEAD(&tspi->queue);
|
||||
|
||||
tspi->rx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT);
|
||||
tspi->rx_dma = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT |
|
||||
TEGRA_DMA_SHARED);
|
||||
if (!tspi->rx_dma) {
|
||||
dev_err(&pdev->dev, "can not allocate rx dma channel\n");
|
||||
ret = -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user