From: linus.walleij@linaro.org (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM:SAMSUNG: Move S3C DMA driver to drivers/dma
Date: Tue, 7 Jun 2011 12:15:59 +0200 [thread overview]
Message-ID: <BANLkTimid914CxUdf2j6X3c=1c1MuRbxXg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimjWNf3PxHXj3o5qubH5g7gMHjhFg@mail.gmail.com>
On Tue, Jun 7, 2011 at 10:09 AM, Jassi Brar <jassisinghbrar@gmail.com> wrote:
> There are some features of Samsung's DMA API that
> the drivers have come to rely upon.
Can we get an overview of what these features are?
When I look at this specific code I cannot see anything that
the dmaengine does not already support or can be made to
support easily.
s3c2410_dma_getposition => device_tx_status()
s3c2410_dma_devconfig - not even needed with dmaengine
sematics, we already know the directions for any transfer.
s3c2410_dma_setflags => device_control() if it needs to be
runtime, else platform data. device_control() is prepared to
be extended for any custom weirdness flags if need be.
s3c2410_dma_set_buffdone_fn - no clue what this is, help
us. If related to cyclic transfer as one could guess, we
already have an API for that.
s3c2410_dma_ctrl => device_control() - there are two
weird controls named TIMEOUT and FLUSH, TIMEOUT
seem strange semantically for a ctrl* function, it seems like
something that should come from the hardware, and flush
is maybe an applicable extension, though I think any DMA
engine with a running channel will indeed flush anything
as quick as it can, if related to circular transfers we can
handle that.
The rest seems to be about retrieveing channels, putting them
back on the heap and allocating resources for them as we
already do in dmaengine.
> I am not particularly a fan of the generic API. And IIRC,
> neither is Ben Dooks, the designer of the
> Samsung's DMA API.
This is not soccer/football/cricket. ;-)
Seriously, if there are any longstanding issues with the API we
need them nailed down, please help!
Thanks,
Linus Walleij
next prev parent reply other threads:[~2011-06-07 10:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 7:48 [PATCH] ARM:SAMSUNG: Move S3C DMA driver to drivers/dma root
2011-06-07 8:00 ` Kyungmin Park
2011-06-07 8:09 ` Jassi Brar
2011-06-07 8:15 ` Russell King - ARM Linux
2011-06-07 8:35 ` Kyungmin Park
2011-06-07 10:15 ` Jassi Brar
2011-06-07 18:29 ` Russell King - ARM Linux
2011-06-07 18:43 ` Mark Brown
2011-06-07 19:01 ` Jassi Brar
2011-06-07 21:41 ` Mark Brown
2011-06-08 2:51 ` Jassi Brar
2011-06-08 8:55 ` Mark Brown
2011-06-07 22:28 ` Russell King - ARM Linux
2011-06-08 4:05 ` Jassi Brar
2011-06-08 7:44 ` Russell King - ARM Linux
2011-06-07 19:46 ` Jassi Brar
2011-06-07 22:36 ` Russell King - ARM Linux
2011-06-09 18:24 ` Kukjin Kim
2011-06-16 12:56 ` Kyungmin Park
2011-06-23 6:47 ` Kukjin Kim
2011-06-07 10:15 ` Linus Walleij [this message]
2011-06-07 10:05 ` Koul, Vinod
2011-06-07 8:01 ` Jassi Brar
2011-06-07 15:42 ` Tushar Behera
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='BANLkTimid914CxUdf2j6X3c=1c1MuRbxXg@mail.gmail.com' \
--to=linus.walleij@linaro.org \
--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).