From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Benjamin Herrenschmidt
<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
Cc: Christian Kujau <lists-AanptEQQ3TL9uQeqpI+JUg@public.gmane.org>,
Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: therm_adt746x: attach_adapter method is deprecated (fwd)
Date: Tue, 5 Jul 2011 10:27:52 +0200 [thread overview]
Message-ID: <20110705102752.1251361c@endymion.delvare> (raw)
In-Reply-To: <1309850440.14501.275.camel@pasglop>
Hi Benjamin,
On Tue, 05 Jul 2011 17:20:40 +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2011-04-22 at 20:18 +0200, Jean Delvare wrote:
> > Note that I think it would make a lot of sense to expose all the
> > monitored values at least read-only through a hwmon-style interface in
> > all these powermac specific drivers. This would let these values be
> > reported to users by all standard monitoring tools.
> >
> > Independent from the warnings you were reported, though.
>
> Ok, I've finally decided to dedicate a couple of days in fixing them,
> it's non-trivial, but I'm getting there slowly. In some cases (windfarm)
> it's easy and actually removes significant amounts of code from the
> drivers. In other cases, it's harder because the drivers are pretty
> awful in the first place (therm_adt746x).
I am glad to hear that the change will simplify the code in at least
some cases.
> I might completely replace therm_pm72 with a windfarm implementation for
> those older G5's which would be more consistent (all G5's would thus use
> windfarm) since it's cleaner (therm_pm72 hard code i2c addresses etc...
> while windfarm is meant for more dynamic probing of the sensors).
>
> Regarding the hwmon interface, well, that's a whole different issue...
>
> Windfarm generically creates sysfs files for all sensors so I suppose it
> -could- start exposing them in a more standard interface.
>
> therm_adt746x creates its own special /sys/devices/temperatures with all
> the files in it. I don't want to remove it for now but it might be
> worthwhile adding an hwmon interface to it, at least I can still test
> on it.
Sounds good.
> therm_windtunnel is similar but I don't have the HW to test so that's
> going to be a bit nastier.
>
> I hope to have something before the end of the week for you to review.
Sure, as soon as you have anything ready, I'll be happy to review it.
--
Jean Delvare
next prev parent reply other threads:[~2011-07-05 8:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <alpine.DEB.2.01.1104211758220.18728@trent.utfs.org>
[not found] ` <alpine.DEB.2.01.1104211758220.18728-yMVncJ7Z0T9hhup4ARC/jw@public.gmane.org>
2011-04-22 8:31 ` therm_adt746x: attach_adapter method is deprecated (fwd) Jean Delvare
[not found] ` <20110422103147.24c79768-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-04-22 17:59 ` Christian Kujau
[not found] ` <alpine.DEB.2.01.1104221057160.18728-yMVncJ7Z0T9hhup4ARC/jw@public.gmane.org>
2011-04-22 18:18 ` Jean Delvare
[not found] ` <20110422201803.6886669d-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-07-05 7:20 ` Benjamin Herrenschmidt
2011-07-05 8:27 ` Jean Delvare [this message]
[not found] ` <20110705102752.1251361c-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2011-07-05 16:14 ` Christian Kujau
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=20110705102752.1251361c@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lists-AanptEQQ3TL9uQeqpI+JUg@public.gmane.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).