Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@cam.ac.uk>
To: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: linux-iio <linux-iio@vger.kernel.org>
Subject: Re: [lm-sensors] [RFC 5/5] hwmon: add support for Technologic Systems TS-5500 A-D converter
Date: Tue, 07 Jun 2011 09:37:19 +0100	[thread overview]
Message-ID: <4DEDE33F.5020104@cam.ac.uk> (raw)
In-Reply-To: <20110606185658.73b29f39@v0nbox>

On 06/06/11 23:56, Vivien Didelot wrote:
> Hi Jonathan,
> 
> On Wed, 04 May 2011 10:03:24 +0100,
> Jonathan Cameron <jic23@cam.ac.uk> wrote:
>>> Excerpts from Guenter Roeck's message of 2011-04-29 23:39:38 -0400:
>>>> Having said that, from reading the code it looks like the chip is
>>>> not really used for hardware monitoring, but for generic ADC
>>>> functionality. A quick look into the TS-5500 user manual confirms
>>>> this. So this should not be a hwmon driver in the first place, but
>>>> a generic ADC driver. Given the ADC conversion rate of the MAX197,
>>>> the hwmon ABI is not optimal anyway. You should move this driver
>>>> into the iio subsystem, probably to drivers/staging/iio/adc.
>>>> Copying the iio mailing list for input.
>>>>
>>>> Thanks,
>>>> Guenter
>>>
>>> I've took a closer look to the manual and that's right, in fact the
>>> driver doesn't talk to the MAX197 directly. The board uses a CPLD to
>>> abstract the interface to the MAX197. So all the MAX197 logic is
>>> hidden by the CPLD.  Therefore, the driver files should probably
>>> not have function and structure names with a "max197_" prefix. I'll
>>> make the code a bit clearer. What do you think?
>>>
>>> Ok for iio subsystem, several ADC drivers are in drivers/hwmon/ but
>>> drivers/staging/iio/adc seems to be the good place now.
>> Just as a heads up, beware there are a few abi changes (and a lot of
>> core ones) working their way through review /already in staging-next.
>> I only mention it because merges against that tree will go through
>> staging-next and as it's name suggests is sometimes a fast moving
>> target!
>>
>> Jonathan
> 
> For the moment I have a working driver for the TS-5500 A/D Converter in
> a arch/x86/platform/ts5500/ directory, but it is actually using the
> HWMON interface. I have to move it to the IIO subsystem as you
> suggested. Should it be in drivers/staging/iio/adc/ or can it stay in
> my platform directory, as it is a platform specific device?
Seeing the current effort going on to move drivers out of arch (first step
in all the Arm cleanups), I'd suggest we follow the herd.   Also, we are
still making a fair number of core changes and a lot of these change the
internal abis.  If it is elsewhere in the kernel, I for one am likely
to forget it exists, so I definitely want all drivers in drivers/staging/iio/adc

Also, you'd run into fun issues due to the fact we are in staging.  Nothing
outside of staging is supposed to depend on elements inside.

Jonathan

      reply	other threads:[~2011-06-07  8:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1304115712-5299-1-git-send-email-vivien.didelot@savoirfairelinux.com>
     [not found] ` <1304115712-5299-6-git-send-email-vivien.didelot@savoirfairelinux.com>
2011-04-30  3:39   ` [lm-sensors] [RFC 5/5] hwmon: add support for Technologic Systems TS-5500 A-D converter Guenter Roeck
2011-04-30  9:56     ` Jonathan Cameron
2011-05-03 15:55     ` Vivien Didelot
2011-05-03 17:33       ` Guenter Roeck
2011-05-04  9:03       ` Jonathan Cameron
2011-06-06 22:56         ` Vivien Didelot
2011-06-07  8:37           ` Jonathan Cameron [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=4DEDE33F.5020104@cam.ac.uk \
    --to=jic23@cam.ac.uk \
    --cc=linux-iio@vger.kernel.org \
    --cc=vivien.didelot@savoirfairelinux.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