linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Martin Fuzzey <mfuzzey@parkeon.com>, Peter Meerwald <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org, Hartmut Knaack <knaack.h@gmx.de>
Subject: Re: [PATCH V4 6/7] iio: mma8452: Add highpass filter configuration.
Date: Fri, 22 May 2015 18:58:03 +0100	[thread overview]
Message-ID: <555F6E2B.5060904@kernel.org> (raw)
In-Reply-To: <5559A020.9020105@parkeon.com>

On 18/05/15 09:17, Martin Fuzzey wrote:
> On 17/05/15 11:48, Jonathan Cameron wrote:
>> On 13/05/15 11:26, Martin Fuzzey wrote:
>>> Allow the cutoff frequency of the high pass filter to be configured.
>>>
>>> Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>
>> Oops, I missed in patch 4 that you'd added the event_spec entry for the highpass
>> filter but not the support to actually read it (which is here).
> Ah true, good catch
> 
>> I'll back out back to patch 4.  Could you repost with that sorted out.
> ok
> 
>> Also, if (as I think is happening here) we have a filter applied to all
>> the data that is read from a channel (including it's events) then we normally
>> only have the attribute for the iio_chan_spec rather than the event spec
>> as well.
>>
>> Anything that is in the parent directory is also assumed to apply to the
>> event directory if not overridden (by it being in both) as we could have
>> a pipeline in the device with seperate filters for the event detector and
>> the main data flow (not true here?)
>>
>> Hence, please drop the event version unless I have missunderstood what
>> you are doing with the hardware.
>>
>> It's fine to leave the abi docs in place however as they are correct even
>> if we don't normally introduced them until there is a driver using them.
> 
> The hardware has one filter and two enable bits (one for the data and one for the event)
> It is thus possible to read unfiltered data but have the filter applied for the events.
> 
> We discussed this in revision 2 of the series.
> https://www.marc.info/?l=linux-iio&m=140803621414813&w=2
> 
> I thought we agreed in the above discussion to represent this as two 3db frequencies with 0 meaning disable.
> I did that for V3 of the series.
> 
Hmm.  thought I'd replied to this from my phone the other day..
Just in case that never went anywhere, this is fine and just
my memory failing me!  

Jonathan


  reply	other threads:[~2015-05-22 17:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 10:26 [PATCH V4 0/7] iio: mma8452 enhancements Martin Fuzzey
2015-05-13 10:26 ` [PATCH V4 1/7] iio: mma8452: Initialise before activating Martin Fuzzey
2015-05-17  9:29   ` Jonathan Cameron
2015-05-13 10:26 ` [PATCH V4 2/7] iio: mma8452: Add access to registers via DebugFS Martin Fuzzey
2015-05-17  9:31   ` Jonathan Cameron
2015-05-13 10:26 ` [PATCH V4 3/7] iio: core: add high pass filter attributes Martin Fuzzey
2015-05-17  9:32   ` Jonathan Cameron
2015-05-13 10:26 ` [PATCH V4 4/7] iio: mma8452: Basic support for transient events Martin Fuzzey
2015-05-17  9:36   ` Jonathan Cameron
2015-05-13 10:26 ` [PATCH V4 5/7] iio: mma8452: Add support for transient event debouncing Martin Fuzzey
2015-05-17  9:38   ` Jonathan Cameron
2015-05-13 10:26 ` [PATCH V4 6/7] iio: mma8452: Add highpass filter configuration Martin Fuzzey
2015-05-17  9:48   ` Jonathan Cameron
2015-05-18  8:17     ` Martin Fuzzey
2015-05-22 17:58       ` Jonathan Cameron [this message]
2015-05-13 10:26 ` [PATCH V4 7/7] iio: mma8452: Add support for interrupt driven triggers Martin Fuzzey
2015-05-17  9:55   ` Jonathan Cameron

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=555F6E2B.5060904@kernel.org \
    --to=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=mfuzzey@parkeon.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 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).