From: David Miller <davem@davemloft.net>
To: richard.rojfors@pelagicore.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] ks8842: Support DMA when accessed via timberdale
Date: Tue, 27 Jul 2010 10:49:26 -0700 (PDT) [thread overview]
Message-ID: <20100727.104926.57485905.davem@davemloft.net> (raw)
In-Reply-To: <1280222297.13522.15.camel@debian>
From: Richard Röjfors <richard.rojfors@pelagicore.com>
Date: Tue, 27 Jul 2010 11:18:17 +0200
> This patch adds support for RX and TX DMA via the DMA API,
> this is only supported when the KS8842 is accessed via timberdale.
>
> There is no support for DMA on the generic bus interface it self,
> a state machine inside the FPGA is handling RX and TX transfers to/from
> buffers in the FPGA. The host CPU can do DMA to and from these buffers.
>
> The FPGA has to handle the RX interrupts, so these must be enabled in
> the ks8842 but not in the FPGA. The driver must not disable the RX interrupt
> that would mean that the data transfers into the FPGA buffers would stop.
>
> The host shall not enable TX interrupts since TX is handled by the FPGA,
> the host is notified by DMA callbacks when transfers are finished.
>
> Which DMA channels to use are added as parameters in the platform data struct.
>
> Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Please, no more crazy config options, make the code dynamically use
DMA or not based upon information passed in via the platform_device
object at probe time.
prev parent reply other threads:[~2010-07-27 17:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 9:18 [PATCH] ks8842: Support DMA when accessed via timberdale Richard Röjfors
2010-07-27 17:49 ` David Miller [this message]
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=20100727.104926.57485905.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=richard.rojfors@pelagicore.com \
/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).