Thread (9 messages) 9 messages, 2 authors, 2016-06-16

Re: lm-senser can't detect thermal on thermal_zone

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: 2016-05-30 06:29:06
Also in: linux-renesas-soc, lkml

Hi Zhang

Can you check this email ?
Thank you for your help
quoted
quoted
	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. but it seems our system has it.

I noticed that thermal_zone case uses of_parse_thermal_zones()
and it has this.

		/* No hwmon because there might be hwmon drivers registering */
		tzp->no_hwmon = true;

and on thermal_zone_device_register() check this for hwmon

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" ?

Best regards
---
Kuninori Morimoto
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help