All of lore.kernel.org
 help / color / mirror / Atom feed
* How to use the generic thermal sysfs.
@ 2012-07-12 10:22 ` Wei Ni
  0 siblings, 0 replies; 27+ messages in thread
From: Wei Ni @ 2012-07-12 10:22 UTC (permalink / raw)
  To: rui.zhang, len.brown, akpm, khali, joe, durgadoss.r
  Cc: linux-kernel, linux-tegra, acourbot

Hi, all
I'm working on the tegra thermal throttling upstream issue.
The tegra30 board use the nct1008 as the thermal sensor, and the lm90 is
the sensor driver. We want to use the generic thermal sysfs.
 
My question is where should we register the thermal zone device? We may
have two place to do it:
1. register it in the sensor driver, such as lm90.c
In this way, the sensor driver doesn't need to export any APIs, such as
get_temp.
2. register in my tegra thermal framework.
In this way, the sensor driver need to export some APIs, which are used
to register the ops and do any other things.

How should I do it?

And in current codes, there have the event notification, in the form of
a netlink event. But it's difficult to be used in the kernel, it's
normally for the communication with user-space. How about to add a
notify call chain for it? So when the sensor has irq alert, it can send
a notify to my thermal framework in kernel.

Do anyone has suggestions?

Thanks.
Wei.

---
nvpublic

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2012-10-17  8:36 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12 10:22 How to use the generic thermal sysfs Wei Ni
2012-07-12 10:22 ` Wei Ni
2012-07-12 10:54 ` R, Durgadoss
2012-07-12 10:54   ` R, Durgadoss
2012-07-13  1:51   ` Zhang Rui
2012-07-13  7:30     ` Wei Ni
2012-07-13  7:41       ` Zhang Rui
     [not found]         ` <1342165278.1682.259.camel-fuY85erJQUO75v1z/vFq2g@public.gmane.org>
2012-07-13  8:11           ` Wei Ni
2012-07-13  8:11             ` Wei Ni
2012-07-13  9:53             ` Wei Ni
2012-07-13  9:53               ` Wei Ni
2012-07-26  9:31         ` Wei Ni
2012-07-27  1:21           ` Zhang Rui
2012-07-27  2:58             ` Wei Ni
2012-07-27  7:30               ` Jean Delvare
2012-07-27  7:39                 ` Zhang Rui
2012-07-27 10:48                   ` Wei Ni
2012-08-01  1:02                     ` Zhang Rui
2012-08-01 11:29                       ` Wei Ni
2012-10-17  7:15         ` How can I get the latest generic thermal framework Wei Ni
2012-10-17  8:36           ` R, Durgadoss
2012-10-17  8:36             ` R, Durgadoss
2012-07-13  5:48   ` How to use the generic thermal sysfs Alex Courbot
2012-07-13  5:54     ` R, Durgadoss
2012-07-13  5:54       ` R, Durgadoss
2012-07-13  6:08       ` Alex Courbot
2012-07-13  6:10         ` Zhang Rui

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.