public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: set_dma_addr missing ?
Date: Mon, 28 Jan 2008 09:09:04 +0000	[thread overview]
Message-ID: <20080128090904.GA8404@linux-sh.org> (raw)
In-Reply-To: <38b2ab8a0801261302i68a84fdo6d6ebdb26d9acfc8@mail.gmail.com>

On Mon, Jan 28, 2008 at 09:48:59AM +0100, Francis Moreau wrote:
> On Jan 28, 2008 3:47 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> > On Sat, Jan 26, 2008 at 10:02:02PM +0100, Francis Moreau wrote:
> > > Sorry to be blind but I can't figure out why this function is missing
> > > for SH architecture ?
> > >
> > It's not "missing", it's only enabled if you specifically request support
> > for the ISA DMA API wrapper. It's a total kludge, since the SH DMAC has
> > very little in common with how ISA DMA works, but it's provided for
> > compatability anyways. If you're trying to use this API in a driver,
> > you're almost definitely doing the wrong thing.
> 
> But what's the other alternative ?
> 
> I have a DMA controller, which has very little in common with ISA DMA
> as you said.
> I'd like to use it from a generic driver. Which API should I use then ?
> 
Well, there are two options, either using the existing SH DMA API, or
trying to hook something in through the dmaengine API. The latter is the
way that we'll be moving in the near future, but we do still need to keep
compatability with the existing SH DMA API around in order to avoid
breaking the existing in-tree users.

You may wish to poke around arch/sh/drivers/dma/. There are lots of
greppable things you can find in the rest of tree that show the API,
in-tree users, etc. Post if you have any problems.

  parent reply	other threads:[~2008-01-28  9:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-26 21:02 set_dma_addr missing ? Francis Moreau
2008-01-28  2:47 ` Paul Mundt
2008-01-28  8:48 ` Francis Moreau
2008-01-28  9:09 ` Paul Mundt [this message]
2008-01-28 10:00 ` Francis Moreau
2008-01-28 10:17 ` Paul Mundt
2008-01-28 13:50 ` Francis Moreau
2008-01-28 14:00 ` Stuart MENEFY
2008-01-28 14:14 ` Paul Mundt
2008-01-28 14:28 ` Francis Moreau
2008-01-28 14:31 ` Francis Moreau
2008-01-28 14:40 ` Stuart MENEFY
2008-01-28 16:36 ` Francis Moreau
2008-01-29  0:44 ` Paul Mundt

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=20080128090904.GA8404@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.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