All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@cam.ac.uk>
To: "Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: "linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	Drivers <Drivers@analog.com>,
	"device-drivers-devel@blackfin.uclinux.org"
	<device-drivers-devel@blackfin.uclinux.org>
Subject: Re: [PATCH] IIO: ADC: New driver for the AD7880 / AD7781 24-bit Sigma-Delta ADC
Date: Thu, 24 Mar 2011 15:17:46 +0000	[thread overview]
Message-ID: <4D8B609A.5070603@cam.ac.uk> (raw)
In-Reply-To: <544AC56F16B56944AEC3BD4E3D59177137545394A3@LIMKCMBX1.ad.analog.com>

On 03/24/11 15:12, Hennerich, Michael wrote:
> Jonathan Cameron wrote on 2011-03-24:
>> On 03/24/11 14:10, michael.hennerich@analog.com wrote:
>>> From: Michael Hennerich <michael.hennerich@analog.com>
>>
>> Hi Michael,
>>
>> Some slightly inconsistent handling of the absence of pdata.
>> Is it possible to use this device without pdrst being connected?
> 
> Yes and no.
> You could but then the AD7780 asserts SDO/RDY whenever a new sample is available.
> No way to stop it, without utilizing PDRST.
> I therefore use spi bus locking and keep the part in reset/power down whenever is should be quiet.
> The part also lacks a dedicated spi chip select. So we definitely want to use PDRST.
Fair enough. That's an 'interesting' bit of hardware!
> 
>> If not, then check for pdata early in probe and fail if not present.
> 
> Yes - I typically do this, however it slipped this time.
> 
>> The datardy on the data out line is a delightful big of hardware
>> design and I guess what you have here is the only way to handle it.
> 
> Unfortunately that's the case.
> 
>> Having said that, perhaps some explanatory comments, maybe in the
>> header, would be useful.  Do you have that irq pin dual wired to the
>> spi data out?
> 
> Yes
> 
> Thanks for the review.
> 
You are most welcome.

  reply	other threads:[~2011-03-24 15:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 14:10 [PATCH] IIO: ADC: New driver for the AD7880 / AD7781 24-bit Sigma-Delta ADC michael.hennerich
2011-03-24 15:04 ` Jonathan Cameron
2011-03-24 15:12   ` Hennerich, Michael
2011-03-24 15:17     ` Jonathan Cameron [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-03-24 15:52 michael.hennerich
2011-03-24 17:04 ` 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=4D8B609A.5070603@cam.ac.uk \
    --to=jic23@cam.ac.uk \
    --cc=Drivers@analog.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=device-drivers-devel@blackfin.uclinux.org \
    --cc=linux-iio@vger.kernel.org \
    /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.