linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC 0/4] dma: Add multiplexer call-back for channel allocation
@ 2012-07-17 10:53 Guennadi Liakhovetski
  2012-07-17 10:53 ` [PATCH/RFC 1/4] dma: add a function to request a DMA channel for a specific client Guennadi Liakhovetski
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Guennadi Liakhovetski @ 2012-07-17 10:53 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all

As recently [1] proposed, a DMA channel multiplexer can be user to 
flexibly allocate DMA channels without a use of a DMAC-specific filter 
function. This patch set presents a possible implementation. Of the 3 
patches in this series the first one is the actual proposal, the other two 
are an illustration, using the shdma dmaengine and the sh_mmcif mmc 
drivers on the sh7372 mackerel board.

This is an RFC, please, comment. One extension, that seems to make sense 
is an addition of a multiplexer-configure call-back to actually configure 
the routing. It isn't needed in the shdma case, so, I didn't want to add 
it without real users. Something along the lines of

	struct dma_chan *(*route_chan)(struct dma_chan *, struct device *,
				enum dma_transfer_direction, const char *);

perhaps?

Thanks
Guennadi

[1] http://thread.gmane.org/gmane.linux.ports.arm.omap/75828/focusv295
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

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

end of thread, other threads:[~2012-08-03 10:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-17 10:53 [PATCH/RFC 0/4] dma: Add multiplexer call-back for channel allocation Guennadi Liakhovetski
2012-07-17 10:53 ` [PATCH/RFC 1/4] dma: add a function to request a DMA channel for a specific client Guennadi Liakhovetski
2012-07-26  6:43   ` Vinod Koul
2012-08-02  9:11     ` Guennadi Liakhovetski
2012-08-03 10:26       ` Vinod Koul
2012-08-03 10:35         ` Guennadi Liakhovetski
2012-07-17 10:53 ` [PATCH/RFC 2/4] dma: shdma: add explicit support for client DMA channel multiplexing Guennadi Liakhovetski
2012-07-17 10:53 ` [PATCH/RFC 3/4] ARM: shmobile: extend MMCIF DMA client configuration entries Guennadi Liakhovetski
2012-07-17 10:53 ` [PATCH/RFC 4/4] mmc: sh_mmcif: switch to using dma_request_slave_channel() Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).