From: Jean Delvare <khali@linux-fr.org>
To: "Éric Piel" <Eric.Piel@tremplin-utc.net>
Cc: Andrew Morton <akpm@osdl.org>,
pavel@ucw.cz, Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Arjan van de Ven <arjan@infradead.org>,
"Mark M. Hoffman" <mhoffman@lightlink.com>,
Yan Burman <burman.yan@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
HWMON <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection
Date: Thu, 05 Jun 2008 06:27:14 +0000 [thread overview]
Message-ID: <20080605082714.1972c3c1@hyperion.delvare> (raw)
In-Reply-To: <48471DF1.70505@tremplin-utc.net>
Hi Eric,
On Thu, 05 Jun 2008 00:57:53 +0200, Éric Piel wrote:
> 04-06-08 22:58, Jean Delvare wrote/a écrit:
> > If you didn't receive any answer, my guess is that it's because you're
> > trying to add this driver to the wrong tree. Why would this driver go
> > in drivers/hwmon and be reviewed by hwmon folks, when it doesn't expose
> > a single hwmon attribute to user-space?
> >
> > I guess you thought putting the driver there would be fine because
> > that's where the hdaps and ams drivers are, but IMHO the hdaps and ams
> > drivers should never have been placed in drivers/hwmon. These devices
> > really aren't hardware monitoring chips is the traditional sense of the
> > term. They are different chips, serving different purposes and
> > deserving a totally different interface. They'd better live in a
> > different subsystem and be maintainer by a different crew with interest
> > in these devices and hardware to test the drivers.
> >
> > This discussion thread might sched some light on a possible approach:
> > http://marc.info/?l=lm-sensors&m\x121127824726050&w=2
> >
> > So my advice is that you don't wait for a review from the hwmon people,
> > because apparently we don't have much interest in this type of device,
> > so you'll be waiting forever. You're much better adding the mdps driver
> > to drivers/misc through Andrew Morton, at least until someone takes
> > care of creating a subsystem for this type of devices and move all
> > existing drivers there.
>
> I understand your argumentation. Indeed, this driver has nothing
> specially related to hwmon, excepted that all the other accelerometers
> so far have been put in hwmon. I've got nothing against redoing the
> patch to move the code to drivers/misc. Andrew, would you accept it?
>
> > Would someone object to moving the hdaps and ams (and possibly
> > applesmc) drivers to drivers/misc?
>
> Yeah, applesmc seems a bit less obvious because it also exposes really
> some hardware sensors. Any idea how to handle this? Just leave it in
> hwmon for now?
There are already other drivers in this case:
drivers/thermal/thermal_sys.c, drivers/misc/eeepc-laptop.c,
drivers/misc/thinkpad_acpi.c and drivers/input/touchscreen/ads7846.c.
All these drivers have multiple functions, one of them is hardware
monitoring but that's not the main one, so they didn't go under
drivers/hwmon. The applesmc driver would simply be one more driver in
this case.
Note that drivers/mfd is a possible alternative to drivers/misc for
these multifunction chips.
> So, the rational about moving all these drivers to drivers/misc/ would
> be that it shows they have no relation with hwmon, and they are
> maintained separately. This would be a temporary place until the
> "accelerometer" subsystem exists by it own, right?
> If everyone is happy with this idea, I can submit a separate patch to
> move them.
I'm fine with moving the drivers right now, yes.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
WARNING: multiple messages have this Message-ID (diff)
From: Jean Delvare <khali@linux-fr.org>
To: "Éric Piel" <Eric.Piel@tremplin-utc.net>
Cc: Andrew Morton <akpm@osdl.org>,
pavel@ucw.cz, Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Arjan van de Ven <arjan@infradead.org>,
"Mark M. Hoffman" <mhoffman@lightlink.com>,
Yan Burman <burman.yan@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
HWMON <lm-sensors@lm-sensors.org>
Subject: Re: [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review!
Date: Thu, 5 Jun 2008 08:27:14 +0200 [thread overview]
Message-ID: <20080605082714.1972c3c1@hyperion.delvare> (raw)
In-Reply-To: <48471DF1.70505@tremplin-utc.net>
Hi Eric,
On Thu, 05 Jun 2008 00:57:53 +0200, Éric Piel wrote:
> 04-06-08 22:58, Jean Delvare wrote/a écrit:
> > If you didn't receive any answer, my guess is that it's because you're
> > trying to add this driver to the wrong tree. Why would this driver go
> > in drivers/hwmon and be reviewed by hwmon folks, when it doesn't expose
> > a single hwmon attribute to user-space?
> >
> > I guess you thought putting the driver there would be fine because
> > that's where the hdaps and ams drivers are, but IMHO the hdaps and ams
> > drivers should never have been placed in drivers/hwmon. These devices
> > really aren't hardware monitoring chips is the traditional sense of the
> > term. They are different chips, serving different purposes and
> > deserving a totally different interface. They'd better live in a
> > different subsystem and be maintainer by a different crew with interest
> > in these devices and hardware to test the drivers.
> >
> > This discussion thread might sched some light on a possible approach:
> > http://marc.info/?l=lm-sensors&m=121127824726050&w=2
> >
> > So my advice is that you don't wait for a review from the hwmon people,
> > because apparently we don't have much interest in this type of device,
> > so you'll be waiting forever. You're much better adding the mdps driver
> > to drivers/misc through Andrew Morton, at least until someone takes
> > care of creating a subsystem for this type of devices and move all
> > existing drivers there.
>
> I understand your argumentation. Indeed, this driver has nothing
> specially related to hwmon, excepted that all the other accelerometers
> so far have been put in hwmon. I've got nothing against redoing the
> patch to move the code to drivers/misc. Andrew, would you accept it?
>
> > Would someone object to moving the hdaps and ams (and possibly
> > applesmc) drivers to drivers/misc?
>
> Yeah, applesmc seems a bit less obvious because it also exposes really
> some hardware sensors. Any idea how to handle this? Just leave it in
> hwmon for now?
There are already other drivers in this case:
drivers/thermal/thermal_sys.c, drivers/misc/eeepc-laptop.c,
drivers/misc/thinkpad_acpi.c and drivers/input/touchscreen/ads7846.c.
All these drivers have multiple functions, one of them is hardware
monitoring but that's not the main one, so they didn't go under
drivers/hwmon. The applesmc driver would simply be one more driver in
this case.
Note that drivers/mfd is a possible alternative to drivers/misc for
these multifunction chips.
> So, the rational about moving all these drivers to drivers/misc/ would
> be that it shows they have no relation with hwmon, and they are
> maintained separately. This would be a temporary place until the
> "accelerometer" subsystem exists by it own, right?
> If everyone is happy with this idea, I can submit a separate patch to
> move them.
I'm fine with moving the drivers right now, yes.
--
Jean Delvare
next prev parent reply other threads:[~2008-06-05 6:27 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 12:05 [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Yan Burman
2008-05-31 12:05 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver Yan Burman
2008-06-04 19:24 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Éric Piel
2008-06-04 19:24 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Éric Piel
2008-06-04 20:58 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Jean Delvare
2008-06-04 20:58 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Jean Delvare
2008-06-04 22:57 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Éric Piel
2008-06-04 22:57 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Éric Piel
2008-06-05 6:27 ` Jean Delvare [this message]
2008-06-05 6:27 ` Jean Delvare
2008-06-04 23:05 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Pavel Machek
2008-06-04 23:05 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Pavel Machek
2008-06-04 23:43 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Éric Piel
2008-06-04 23:43 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Éric Piel
2008-06-05 6:29 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Jean Delvare
2008-06-05 6:29 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Jean Delvare
2008-06-05 9:38 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Jonathan Cameron
2008-06-05 9:38 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Jonathan Cameron
2008-06-05 20:34 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Éric Piel
2008-06-05 20:34 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Éric Piel
2008-06-05 22:27 ` Pau Oliva Fora
2008-06-06 14:24 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Dmitry Torokhov
2008-06-06 14:24 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Dmitry Torokhov
2008-06-06 15:29 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Pau Oliva Fora
2008-06-06 15:29 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Pau Oliva Fora
2008-06-06 14:56 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Eric Piel
2008-06-06 14:56 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Eric Piel
2008-06-06 15:30 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Pau Oliva Fora
2008-06-06 15:30 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Pau Oliva Fora
2008-06-06 8:51 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Jonathan Cameron
2008-06-06 8:51 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Jonathan Cameron
2008-06-04 23:03 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Pavel Machek
2008-06-04 23:03 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Pavel Machek
2008-06-04 23:29 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Éric Piel
2008-06-04 23:29 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Éric Piel
2008-06-05 1:06 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Henrique de Moraes Holschuh
2008-06-05 1:06 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Henrique de Moraes Holschuh
2008-06-05 8:19 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Pavel Machek
2008-06-05 8:19 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Pavel Machek
2008-06-06 14:27 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Dmitry Torokhov
2008-06-06 14:27 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Dmitry Torokhov
2008-06-06 14:59 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Eric Piel
2008-06-06 14:59 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Eric Piel
2008-06-06 15:11 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Dmitry Torokhov
2008-06-06 15:11 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Dmitry Torokhov
2008-06-06 15:37 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Pau Oliva Fora
2008-06-06 15:37 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver -- please review! Pau Oliva Fora
2008-06-05 5:17 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Andrew Morton
2008-06-05 5:17 ` [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver Andrew Morton
2008-06-05 7:43 ` [lm-sensors] " Riku Voipio
2008-06-05 7:43 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Riku Voipio
[not found] ` <48479922.6050003-WgUW+8SLYMv1KXRcyAk9cg@public.gmane.org>
2008-06-05 8:28 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection System 3D ACPI driver Eric Piel
2008-06-05 8:28 ` Eric Piel
2008-06-05 8:28 ` [lm-sensors] [PATCH 2.6.25.4] hwmon: HP Mobile Data Protection Eric Piel
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=20080605082714.1972c3c1@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=Eric.Piel@tremplin-utc.net \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=burman.yan@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=mhoffman@lightlink.com \
--cc=pavel@ucw.cz \
/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.