DMA Engine development
 help / color / mirror / Atom feed
* [PATCH RESEND 1/2] dmaengine: apple-admac: Fix grabbing of channels in of_xlate
@ 2022-10-03  8:10 Martin Povišer
  2022-10-03  8:10 ` [PATCH RESEND 2/2] dmaengine: apple-admac: Allocate cache SRAM to channels Martin Povišer
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Povišer @ 2022-10-03  8:10 UTC (permalink / raw)
  To: Vinod Koul; +Cc: Martin Povišer, asahi, dmaengine, linux-kernel

The of_xlate callback is supposed to return the channel after already
having 'grabbed' it for private use, so fill that in.

Fixes: b127315d9a78 ("dmaengine: apple-admac: Add Apple ADMAC driver")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
---
 drivers/dma/apple-admac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/apple-admac.c b/drivers/dma/apple-admac.c
index d1f74a3aa999..6780761a1640 100644
--- a/drivers/dma/apple-admac.c
+++ b/drivers/dma/apple-admac.c
@@ -490,7 +490,7 @@ static struct dma_chan *admac_dma_of_xlate(struct of_phandle_args *dma_spec,
 		return NULL;
 	}
 
-	return &ad->channels[index].chan;
+	return dma_get_slave_channel(&ad->channels[index].chan);
 }
 
 static int admac_drain_reports(struct admac_data *ad, int channo)
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-19 13:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-03  8:10 [PATCH RESEND 1/2] dmaengine: apple-admac: Fix grabbing of channels in of_xlate Martin Povišer
2022-10-03  8:10 ` [PATCH RESEND 2/2] dmaengine: apple-admac: Allocate cache SRAM to channels Martin Povišer
2022-10-19 13:03   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox