From: Zhang Rui <rui.zhang@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: "edubezval@gmail.com" <edubezval@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"yoshihiro.shimoda.uh@renesas.com"
<yoshihiro.shimoda.uh@renesas.com>,
"cm-hiep@jinso.co.jp" <cm-hiep@jinso.co.jp>
Subject: Re: lm-senser can't detect thermal on thermal_zone
Date: Tue, 14 Jun 2016 21:24:18 +0800 [thread overview]
Message-ID: <1465910658.9422.9.camel@intel.com> (raw)
In-Reply-To: <877fdscl6o.wl%kuninori.morimoto.gx@renesas.com>
On 二, 2016-06-14 at 07:03 +0000, Kuninori Morimoto wrote:
> Hi Zhang
>
> >
> > >
> > > >
> > > > >
> > > > > struct thermal_zone_device
> > > > > *thermal_zone_device_register(xxxx)
> > > > > {
> > > > > ...
> > > > > if (!tz->tzp || !tz->tzp->no_hwmon) {
> > > > > result = thermal_add_hwmon_sysfs(tz);
> > > > > ...
> > > > > }
> > > > > ...
> > > > > }
> > > > >
> > > > > Does this mean "thermal_zone doesn't use lm-senser" ?
> > I'd prefer to say of_thermal registered thermal_zone doesn't use
> > lm-
> > sensor.
> > If you're really want to see hwmon interface, I think you should
> > use
> > thermal API (thermal_zone_device_register) directly.
> Thank you for your feedback.
> My driver is supporting both of_thermal and thermal API.
> So, switching is not a big deal.
>
> But can you teach me why of_thermal doesn't use lm-senser ??
I don't know if there is a solid reason that we can not expose the
hwmon interface. But just like the comment says, "/* No hwmon because
there might be hwmon drivers registering */", given that of_thermal
just parses THERMAL data of device tree, it is reasonable to me for
exposing thermal interfaces only.
thanks,
rui
next prev parent reply other threads:[~2016-06-14 13:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 8:09 lm-senser can't detect thermal on thermal_zone Kuninori Morimoto
2016-05-12 8:09 ` Kuninori Morimoto
2016-05-13 0:44 ` Zhang, Rui
2016-05-13 2:04 ` Kuninori Morimoto
2016-05-30 6:28 ` Kuninori Morimoto
2016-06-09 3:07 ` Kuninori Morimoto
2016-06-14 6:32 ` Zhang Rui
2016-06-14 7:03 ` Kuninori Morimoto
2016-06-14 13:24 ` Zhang Rui [this message]
2016-06-16 0:23 ` Kuninori Morimoto
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=1465910658.9422.9.camel@intel.com \
--to=rui.zhang@intel.com \
--cc=cm-hiep@jinso.co.jp \
--cc=edubezval@gmail.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.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 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.