From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: "x86@kernel.org" <x86@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86/platform: (TS-5500) revised ADC driver
Date: Fri, 20 Jan 2012 20:46:31 -0800 [thread overview]
Message-ID: <20120121044631.GA4143@ericsson.com> (raw)
In-Reply-To: <1327103002-5834-1-git-send-email-vivien.didelot@savoirfairelinux.com>
On Fri, Jan 20, 2012 at 06:43:22PM -0500, Vivien Didelot wrote:
> Update of the ADC driver according to the Guenter Roeck's review.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
> ---
> arch/x86/platform/ts5500/ts5500_adc.c | 228 +++++++++++++--------------------
> 1 files changed, 89 insertions(+), 139 deletions(-)
>
> diff --git a/arch/x86/platform/ts5500/ts5500_adc.c b/arch/x86/platform/ts5500/ts5500_adc.c
> index fc4560f..da6decf 100644
> --- a/arch/x86/platform/ts5500/ts5500_adc.c
> +++ b/arch/x86/platform/ts5500/ts5500_adc.c
> @@ -62,57 +62,62 @@
>
Hi Vivien,
This isn't really a revised driver ... it is a patch on top of the previous version.
Regarding the location, I'd really like to know from the powers-that-be if
arch/x86/platform/ts5500/
or
drivers/platform/x86
or
drivers/hwmon
would be the appropriate location for a driver like this. As mentioned before,
my strong preference is drivers/hwmon, but I would like to hear from others.
Also, I am not sure if the current approach is appropriate to start with.
Looking at the datasheet as well as into existing kernel code, it appears quite likely
that some kind of more or less generic MAX197 driver exists somewhere. The existence
of is_max197_installed() - without any calling code - is a strong indication that
this is the case, as well as the "static" platform data in your original patch.
It might be more appropriate to take this more or less generic driver, move it to
drivers/hwmon, and provide - for example through platform data - a means
to read from and write to the chip on a per-platform basis, ie with per-platform
access functions.
Thanks,
Guenter
next prev parent reply other threads:[~2012-01-21 4:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 23:52 [PATCH v4 0/4] Support for the TS-5500 platform Vivien Didelot
2012-01-18 23:52 ` [PATCH v4 1/4] x86/platform: (TS-5500) add platform base support Vivien Didelot
2012-01-18 23:52 ` [PATCH v4 2/4] x86/platform: (TS-5500) add GPIO support Vivien Didelot
2012-01-18 23:52 ` [PATCH v4 3/4] x86/platform: (TS-5500) add LED support Vivien Didelot
2012-01-18 23:52 ` [PATCH v4 4/4] x86/platform: (TS-5500) add ADC support Vivien Didelot
2012-01-19 2:55 ` Guenter Roeck
2012-01-19 2:57 ` Guenter Roeck
2012-01-20 23:41 ` Vivien Didelot
2012-01-21 0:09 ` Guenter Roeck
2012-01-20 23:43 ` [PATCH] x86/platform: (TS-5500) revised ADC driver Vivien Didelot
2012-01-21 4:46 ` Guenter Roeck [this message]
2012-01-23 1:36 ` Vivien Didelot
2012-01-23 4:36 ` Guenter Roeck
2012-01-23 20:54 ` Vivien Didelot
2012-01-23 22:35 ` Vivien Didelot
2012-01-24 0:41 ` Guenter Roeck
2012-01-24 20:16 ` Vivien Didelot
2012-01-24 21:20 ` Guenter Roeck
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=20120121044631.GA4143@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=vivien.didelot@savoirfairelinux.com \
--cc=x86@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 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).