From: Illia Smyrnov <x0194613@ti.com>
To: Mark Brown <broonie@kernel.org>
Cc: Illia Smyrnov <illia.smyrnov@ti.com>,
Grant Likely <grant.likely@linaro.org>,
Rob Herring <rob.herring@calxeda.com>,
Rob Landley <rob@landley.net>, Daniel Mack <zonque@gmail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Tony Lindgren <tony@atomide.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
<devicetree-discuss@lists.ozlabs.org>,
<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<spi-devel-general@lists.sourceforge.net>,
<linux-omap@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] spi: omap2-mcspi: Add FIFO buffer support
Date: Fri, 14 Jun 2013 19:16:12 +0300 [thread overview]
Message-ID: <51BB41CC.9080403@ti.com> (raw)
In-Reply-To: <20130612154755.GJ1403@sirena.org.uk>
On 06/12/2013 06:47 PM, Mark Brown wrote:
> On Tue, Jun 11, 2013 at 08:09:15PM +0300, Illia Smyrnov wrote:
>> The MCSPI controller has a built-in FIFO buffer to unload the DMA or interrupt
>> handler and improve data throughput. This patch adds FIFO buffer support for SPI
>> transfers in DMA mode.
>
>> The FIFO could be enabled for SPI module by setting up the "ti,spi-fifo-enabled"
>> configuration parameter in DT.
>> If FIFO enabled, the largest possible FIFO buffer size will be calculated and
>> setup for each SPI transfer. Even if the FIFO is enabled in DT, it won't be used
>> for the SPI transfers when: calculated FIFO buffer size is less then 2 bytes or
>> the FIFO buffer size isn't multiple of the SPI word length.
>
> Why is the default to disable the FIFO?
>
I have changed this and sent v3 patches of the MCSPI FIFO support
implementation. In this version driver set up the FIFO (if possible) for
all the SPI transfers in DMA mode.
prev parent reply other threads:[~2013-06-14 16:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 17:09 [PATCH v2 0/2] spi: omap2-mcspi: add FIFO buffer support Illia Smyrnov
[not found] ` <1370970556-11713-1-git-send-email-illia.smyrnov-l0cyMroinI0@public.gmane.org>
2013-06-11 17:09 ` [PATCH v2 1/2] spi: omap2-mcspi: Move bytes per word calculation to the function Illia Smyrnov
2013-06-11 17:09 ` [PATCH v2 2/2] spi: omap2-mcspi: Add FIFO buffer support Illia Smyrnov
[not found] ` <1370970556-11713-3-git-send-email-illia.smyrnov-l0cyMroinI0@public.gmane.org>
2013-06-12 15:47 ` Mark Brown
2013-06-14 16:16 ` Illia Smyrnov [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=51BB41CC.9080403@ti.com \
--to=x0194613@ti.com \
--cc=broonie@kernel.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=grant.likely@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=illia.smyrnov@ti.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=tony@atomide.com \
--cc=zonque@gmail.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).