linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH/RFC 0/4] dma: Add multiplexer call-back for channel allocation
Date: Tue, 17 Jul 2012 10:53:38 +0000	[thread overview]
Message-ID: <Pine.LNX.4.64.1207171201550.11241@axis700.grange> (raw)

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/

             reply	other threads:[~2012-07-17 10:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 10:53 Guennadi Liakhovetski [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.1207171201550.11241@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).