From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752778AbcEMAos (ORCPT ); Thu, 12 May 2016 20:44:48 -0400 Received: from mga09.intel.com ([134.134.136.24]:40566 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbcEMAor (ORCPT ); Thu, 12 May 2016 20:44:47 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,611,1455004800"; d="scan'208";a="102310833" From: "Zhang, Rui" To: "kuninori.morimoto.gx@renesas.com" CC: "edubezval@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-pm@vger.kernel.org" , "yoshihiro.shimoda.uh@renesas.com" , "cm-hiep@jinso.co.jp" Subject: Re: lm-senser can't detect thermal on thermal_zone Thread-Topic: lm-senser can't detect thermal on thermal_zone Thread-Index: AQHRrCWZMwN47bZHz0OVjyHN7S4UuJ+1guSA Date: Fri, 13 May 2016 00:44:43 +0000 Message-ID: <1463100287.15071.8.camel@rzhang1-mobl4> References: <87posrn1oj.wl%kuninori.morimoto.gx@renesas.com> In-Reply-To: <87posrn1oj.wl%kuninori.morimoto.gx@renesas.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.13.7] Content-Type: text/plain; charset="utf-8" Content-ID: <5D455B22F645B54A9CC08B7E295B71EA@intel.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u4D0isHC001582 On Thu, 2016-05-12 at 08:09 +0000, Kuninori Morimoto wrote: > Hi Zhang, Eduardo > > Our platform now is using thermal_zone, but lm-senser became no longer working. > It works on non thermal_zone. we can get current thermal from > /sys/class/thermal/thermal_zone0 on thermal_zone. > What does lm-senser is doing ? and why it doesn't work on thermal_zone ?? > > -- thermal_zone enable patch -- > > a8b805f3606f7af7f2b44763d3d6cf05f7c15afd > (ARM: dts: r8a7790: enable to use thermal-zone) > > -- lm-senser error on thermal-zone ---- > > > sensors > No sensors found! > Make sure you loaded all the kernel drivers you need. > Try sensors-detect to find out which these are. > > -- thermal-zone / non thermal-zone situation -- > > non thermal-zon > sensor command: OK > read from /sys/class/thermal/thermal_zone0 : OK > > thermal-zon > sensor command: NG > read from /sys/class/thermal/thermal_zone0 : OK config THERMAL_HWMON bool prompt "Expose thermal sensors as hwmon device" depends on HWMON=y || HWMON=THERMAL default y please check if the thermal subsystem is built in, while hwmon subsystem is built as module. you should either set CONFIG_HWMON=y, or set both CONFIG_HWMON and CONFIG_THERMAL as module. thanks, rui