Skip to contentSkip to conversation

Update MPC8610 drivers to pick the right DMA channels

PATCH Applied Timur Tabi 2 participants 2 messages Jun 6, 2008

Subsystems (3)
lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH v2 1/1 Update MPC8610 drivers to pick the right DMA channels

On the Freescale MPC8610 SOC, SSI1 is hard-wired to DMA channels 0 and 1, and SSI2 is hard-wired to DMA channels 2 and 3. Fix fsl_ssi.c to reflect that.

---
 sound/soc/fsl/fsl_ssi.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/fsl/fsl_ssi.c +3 -3
index 9d141ec..4f66e84 100644
@@ -790,13 +790,13 @@ static int fsl_ssi_probe(struct of_device *ofdev,
 	/*
 	 * Get the DMA information.  If it's an older device tree (i.e. without
 	 * an "fsl,playback-dma" property), then we assume that SSI1 uses DMA1
-	 * Channels 0 and 1, and SSI2 uses DMA2 Channels 0 and 1.
+	 * Channels 0 and 1, and SSI2 uses DMA1 Channels 2 and 3.
 	 */
 	dma_ph = of_get_property(np, "fsl,playback-dma", NULL);
 	if (!dma_ph) {
 		dev_warn(&ofdev->dev, "please update your device tree\n");
-		dma_np[0] = find_dma_node(ssi_info->id, 0);
-		dma_np[1] = find_dma_node(ssi_info->id, 1);
+		dma_np[0] = find_dma_node(0, ssi_info->id ? 2 : 0);
+		dma_np[1] = find_dma_node(0, ssi_info->id ? 3 : 1);
 	} else {
 		dma_np[0] = of_find_node_by_phandle(*dma_ph);
 		dma_ph = of_get_property(np, "fsl,capture-dma", NULL);
Signature · 1 line
1.5.5
Applied
#1 lore raw
Quoted 3 lines · Timur Tabi

On the Freescale MPC8610 SOC, SSI1 is hard-wired to DMA channels 0 and 1, and SSI2 is hard-wired to DMA channels 2 and 3. Fix fsl_ssi.c to reflect that.

Applied, thanks.