All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: linux-iio@vger.kernel.org, Jonathan Cameron <jic23@kernel.org>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>,
	Nicolas Ferre <nicolas.ferre@atmel.com>,
	Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Subject: Re: [RFC v2] IIO: Add hardware triggers support to the AT91 ADC driver
Date: Mon, 12 Dec 2011 16:09:07 +0100	[thread overview]
Message-ID: <4EE61913.4090205@free-electrons.com> (raw)
In-Reply-To: <4EDFB067.1080306@free-electrons.com>

Hi Jonathan,

I think this is really something we should worry about if this is not
already here.

Even though on the G20, the timer counters come from an external IP, so
we can safely say it is not our job to setup these, on the later Atmel
SoCs, the timer counters are embedded into the ADC, so we would
definitely need to setup at least the period of these counters through IIO.

Maxime

On 07/12/2011 19:28, Maxime Ripard wrote:
> I also have a question related to that.
> 
> The SAM9G20 has timer counters as trigger sources for the ADC. Is there
> some kind of integration for them in IIO, or should we do the setup of
> these counters outside of IIO ?
> 
> Thanks,
> Maxime
> 
> On 07/12/2011 19:25, Maxime Ripard wrote:
>> Hi all,
>>
>> This is a follow-up of the previous patchset about hardware triggers for the
>> ADC on AT91.
>>
>> This is still not for inclusion, as it relies on a duplication of !staging code.
>> But basically, I'm submitting it for review and be sure I do everything right.
>> Moreover, it will save some iterations when the time for it to be included will
>> come.
>>
>> I should have addressed all the points made by Jonathan in the v1, but here is
>> what changed:
>>   - Fix the timestamp declaration. scan_timestamp was set to true, but no
>> channel was declared for it. It is obviously wrong.
>>   - Rebased on brand new patches, instead of outdated branch. This patch now
>> requires the buffer clean ups and scan demux unit patchsets from Jonathan and
>> the brand new wrapper functions introduced by Lars Peter.
>>   - Renamed the triggers to be more explicit
>>   - Lot of small fixes and improvements: use ALIGN, change the location of
>> IRQ acknowledgements, etc.
>>   - Added comments, switched to kernel doc for the structure declarations
>>   - split the cosmetic changes into a new commit
>>
>> Thanks,
>> Maxime
>>
>> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
>> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
>> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


-- 
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-12-12 15:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-07 18:25 [RFC v2] IIO: Add hardware triggers support to the AT91 ADC driver Maxime Ripard
2011-12-07 18:25 ` [PATCH 1/6] ARM: AT91: Add platform data for the ADCs Maxime Ripard
2011-12-07 18:25 ` [PATCH 2/6] ARM: AT91: IIO: Add AT91 ADC driver Maxime Ripard
2011-12-07 18:25 ` [PATCH 3/6] ARM: AT91: Add the ADC to the sam9g20ek board Maxime Ripard
2011-12-07 18:25 ` [PATCH 4/6] AT91: IIO: Move the SoC specific informations to the ADC driver Maxime Ripard
2011-12-07 18:25 ` [PATCH 5/6] AT91: IIO: cosmetic fixes, better error messages Maxime Ripard
2011-12-10 14:44   ` Jonathan Cameron
2011-12-12 11:09     ` Maxime Ripard
2011-12-12 21:30       ` Jonathan Cameron
2011-12-07 18:25 ` [PATCH 6/6] AT91: IIO: Add support for hardware triggers for the ADC Maxime Ripard
2011-12-10 15:24   ` Jonathan Cameron
2011-12-12 13:55     ` Maxime Ripard
2011-12-12 21:29       ` Jonathan Cameron
2011-12-13 13:33         ` Maxime Ripard
2011-12-07 18:28 ` [RFC v2] IIO: Add hardware triggers support to the AT91 ADC driver Maxime Ripard
2011-12-12 15:09   ` Maxime Ripard [this message]
2011-12-12 21:14     ` Jonathan Cameron
2011-12-16 17:49       ` Maxime Ripard
2011-12-19  8:41         ` archive

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=4EE61913.4090205@free-electrons.com \
    --to=maxime.ripard@free-electrons.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=nicolas.ferre@atmel.com \
    --cc=patrice.vilchez@atmel.com \
    --cc=thomas.petazzoni@free-electrons.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 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.