From: Lars-Peter Clausen <lars@metafoo.de>
To: Jonathan Cameron <jic23@kernel.org>,
Hartmut Knaack <knaack.h@gmx.de>,
Peter Meerwald <pmeerw@pmeerw.net>
Cc: Octavian Purdila <octavian.purdila@intel.com>,
Andrey Yurovsky <andrey@snupi.com>,
linux-iio@vger.kernel.org
Subject: Re: [PATCH 6/7] staging:iio:dummy: Add DMA buffer support
Date: Sun, 04 Oct 2015 19:23:23 +0200 [thread overview]
Message-ID: <5611608B.2040105@metafoo.de> (raw)
In-Reply-To: <56114C77.3070909@kernel.org>
On 10/04/2015 05:57 PM, Jonathan Cameron wrote:
> On 02/10/15 15:45, Lars-Peter Clausen wrote:
>> Add a DMA buffer implementation to the IIO dummy driver. Similar to the
>> existing kfifo based dummy buffer implementation the buffer is not
>> connected to any real hardware, but rather emulates its behavior.
>>
>> The dummy DMA buffer is meant to be used as a template for implementing DMA
>> buffer support and can also be used to test the generic IIO DMA buffer
>> infrastructure without having access to hardware that has DMA capabilities.
>>
>> The dummy driver is split into two parts. The first part emulates the
>> behavior of a typical DMA controller and converter while the second part
>> implement a typical device driver for such a system. The separation of the
>> two parts is intentionally kept very strict to be to make it clear which
>> parts will be found in a driver for real hardware and which parts will be
>> performed by the hardware and will not be part of the driver.
>>
>> The type of the buffer used by the IIO dummy device has to be chosen at
>> compile time and can either be the old FIFO based software triggered buffer
>> or the DMA buffer. Given that the dummy device driver is mainly intended
>> for testing the framework and providing a simple example to be used as a
>> template for new drivers it is not critical that the buffer type can be
>> chosen or changed at runtime.
> I almost wonder if it's worth building two modules. One with the kfifo and
> one with the dma buffer.
>
> This is mainly to avoid confusing the distros who will wonder which
> 'fake' option to chose.
Ideally distros shouldn't ship this at all. But we could allow to built both
and then use a module parameter to choose which one to use when both are
built into the module.
next prev parent reply other threads:[~2015-10-04 17:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 14:45 [PATCH 0/7] iio: Add DMA buffer support Lars-Peter Clausen
2015-10-02 14:45 ` [PATCH 1/7] iio: Set device watermark based on watermark of all attached buffers Lars-Peter Clausen
2015-10-02 14:45 ` [PATCH 2/7] iio:iio_buffer_init(): Only set watermark if not already set Lars-Peter Clausen
2015-10-02 14:45 ` [PATCH 3/7] iio: Add support for indicating fixed watermarks Lars-Peter Clausen
2015-10-02 14:45 ` [PATCH 4/7] iio: Add buffer enable/disable callbacks Lars-Peter Clausen
2015-10-02 14:45 ` [PATCH 5/7] iio: Add generic DMA buffer infrastructure Lars-Peter Clausen
2015-10-04 15:34 ` Jonathan Cameron
2015-10-04 17:30 ` Lars-Peter Clausen
2015-10-02 14:45 ` [PATCH 6/7] staging:iio:dummy: Add DMA buffer support Lars-Peter Clausen
2015-10-04 15:57 ` Jonathan Cameron
2015-10-04 17:23 ` Lars-Peter Clausen [this message]
2015-10-02 14:45 ` [PATCH 7/7] iio: Add a DMAengine framework based buffer Lars-Peter Clausen
2015-10-04 16:07 ` Jonathan Cameron
2015-10-04 17:27 ` Lars-Peter Clausen
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=5611608B.2040105@metafoo.de \
--to=lars@metafoo.de \
--cc=andrey@snupi.com \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=linux-iio@vger.kernel.org \
--cc=octavian.purdila@intel.com \
--cc=pmeerw@pmeerw.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.