Thread (28 messages) flat view 28 messages, 8 authors, 2014-08-01

[PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

From: mperttunen@nvidia.com (Mikko Perttunen)
Date: 2014-07-03 13:51:37
Also in: linux-pm, linux-tegra, lkml


On 01/07/14 21:26, Stephen Warren wrote:
Ah, so there's some manufacturing calibration process that sets some
fuse value, and the HW uses a combination of that fuse value, and some
parameters of the manufacturing process as represented by the
SENSOR_CONFIG2 register, to apply the calibration? I wonder why
SENSOR_CONFIG2 is a register not a fuse in that case, but anyway...

Perhaps some comments or kerneldoc in the definition of struct
tegra_tsensor would be useful?
Yes, I'll add some comments.
Why not read THERMCTL_INTR_STATUS inside the IRQ thread. IIRC, if the
ISR wakes an IRQ thread, the interrupt remains disable until the thread
has run its course, so there's no issue deferring the register read
until the thread runs, at which point, the thread can simply loop over
all the sensors.
If that's the case, then that's definitely a better way to do it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help