<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/hwmon/applesmc.c, branch tegra-10.9.9</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>hwmon: applesmc: restore accelerometer and keyboard backlight on resume</title>
<updated>2009-09-22T14:17:49+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2009-09-22T00:04:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a976f150a6953da5ccbd40fa6dba3bd7d56f9f67'/>
<id>a976f150a6953da5ccbd40fa6dba3bd7d56f9f67</id>
<content type='text'>
On resume from suspend, the driver currently resets the logical state as
if it was brought up from halt.  This patch uses the
dev_pm_ops.resume/restore methods to synchronize the hardware with the
memorized logical state, in effect bringing back the accelerometer and
backlight to the state prior to suspend.  Works for both suspend to ram
and hibernation.  The patch has zero effect on the running state.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On resume from suspend, the driver currently resets the logical state as
if it was brought up from halt.  This patch uses the
dev_pm_ops.resume/restore methods to synchronize the hardware with the
memorized logical state, in effect bringing back the accelerometer and
backlight to the state prior to suspend.  Works for both suspend to ram
and hibernation.  The patch has zero effect on the running state.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: Include &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;</title>
<updated>2009-09-15T15:18:13+00:00</updated>
<author>
<name>H Hartley Sweeten</name>
<email>hartleys@visionengravers.com</email>
</author>
<published>2009-09-15T15:18:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=6055fae8aceee41471edfd1876e5617d16e028fe'/>
<id>6055fae8aceee41471edfd1876e5617d16e028fe</id>
<content type='text'>
Drivers should be including &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Cc: Alistair John Strachan &lt;alistair@devzero.co.uk&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Cc: Juerg Haefliger &lt;juergh@gmail.com&gt;
Cc: Frank Seidel &lt;frank@f-seidel.de&gt;
Acked-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Cc: Roger Lucas &lt;vt8231@hiddenengine.co.uk&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Drivers should be including &lt;linux/io.h&gt; instead of &lt;asm/io.h&gt;.

Signed-off-by: H Hartley Sweeten &lt;hsweeten@visionengravers.com&gt;
Cc: Alistair John Strachan &lt;alistair@devzero.co.uk&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Cc: Juerg Haefliger &lt;juergh@gmail.com&gt;
Cc: Frank Seidel &lt;frank@f-seidel.de&gt;
Acked-by: Jim Cromie &lt;jim.cromie@gmail.com&gt;
Cc: "Mark M. Hoffman" &lt;mhoffman@lightlink.com&gt;
Cc: Roger Lucas &lt;vt8231@hiddenengine.co.uk&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: add support for MacPro 3 temperature sensors</title>
<updated>2009-01-30T02:04:45+00:00</updated>
<author>
<name>Bharath Ramesh</name>
<email>bramesh@vt.edu</email>
</author>
<published>2009-01-29T22:25:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fb9f88e1dc76f9feb39d39c40a5d61aad6df4388'/>
<id>fb9f88e1dc76f9feb39d39c40a5d61aad6df4388</id>
<content type='text'>
MacPro 3 have more temperature sensors than the previous MacPro's also the
sensor THTG has been removed.  This patch add supports for the newer
temperature sensors in the MacPro3.

Signed-off-by: Bharath Ramesh &lt;bramesh@vt.edu&gt;
Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MacPro 3 have more temperature sensors than the previous MacPro's also the
sensor THTG has been removed.  This patch add supports for the newer
temperature sensors in the MacPro3.

Signed-off-by: Bharath Ramesh &lt;bramesh@vt.edu&gt;
Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: fix light sensor readings on newer MacBooks</title>
<updated>2009-01-16T00:39:39+00:00</updated>
<author>
<name>Alex Murray</name>
<email>murray.alex@gmail.com</email>
</author>
<published>2009-01-15T21:51:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c3d6362b8717759de7f2086f9665a4d96cacbc51'/>
<id>c3d6362b8717759de7f2086f9665a4d96cacbc51</id>
<content type='text'>
The light sensors ALV0 and ALV1 on newer MacBooks (early 2008 and later)
changed to report 10 bytes instead the earlier 6, and the sensor encoding
subsequently changed.  As a result, the reported light sensors readings
are much too low.

Via experiments leading up to this patch, it seems only the ALV0 is
reporting data, and the most useful value therein is a 10-bit big-endian
value at offset 6.  This suggests that a new protocol was added as a
backward-compatible replacement on top of the old one.

This patch makes applesmc report the improved light sensor reading for the
new machines, on a scale in conformance with earlier ones.

Signed-off-by: Alex Murray &lt;murray.alex@gmail.com&gt;
Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The light sensors ALV0 and ALV1 on newer MacBooks (early 2008 and later)
changed to report 10 bytes instead the earlier 6, and the sensor encoding
subsequently changed.  As a result, the reported light sensors readings
are much too low.

Via experiments leading up to this patch, it seems only the ALV0 is
reporting data, and the most useful value therein is a 10-bit big-endian
value at offset 6.  This suggests that a new protocol was added as a
backward-compatible replacement on top of the old one.

This patch makes applesmc report the improved light sensor reading for the
new machines, on a scale in conformance with earlier ones.

Signed-off-by: Alex Murray &lt;murray.alex@gmail.com&gt;
Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: Add support for MacBook Air 2</title>
<updated>2009-01-06T23:59:18+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2009-01-06T22:41:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=85e0e5ad1ef8cebd010bbd7047418a47ca9c5ead'/>
<id>85e0e5ad1ef8cebd010bbd7047418a47ca9c5ead</id>
<content type='text'>
Add temperature sensor support for MacBook Air 2.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add temperature sensor support for MacBook Air 2.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: make applesmc load automatically on startup</title>
<updated>2008-12-02T03:55:24+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@bitmath.org</email>
</author>
<published>2008-12-01T21:13:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=dc924efb52ba9e4dffec5b15ae2242b894198139'/>
<id>dc924efb52ba9e4dffec5b15ae2242b894198139</id>
<content type='text'>
make use of the new dmi device loading support to automatically load the
applesmc driver based on the dmi_match table.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
make use of the new dmi device loading support to automatically load the
applesmc driver based on the dmi_match table.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers/hwmon/applesmc.c: add generic MacPro support</title>
<updated>2008-11-20T02:49:59+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2008-11-19T23:36:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=45a3a36b6333b9ddfb0c57602d959a8d05bc47e4'/>
<id>45a3a36b6333b9ddfb0c57602d959a8d05bc47e4</id>
<content type='text'>
In order to analyze the SMC of the newer MacPros, applesmc needs to
recognize the machine.  This patch adds the missing generic dmi_match
entry for MacPro models.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to analyze the SMC of the newer MacPros, applesmc needs to
recognize the machine.  This patch adds the missing generic dmi_match
entry for MacPro models.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: Add support for iMac 6</title>
<updated>2008-11-20T02:49:57+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2008-11-19T23:36:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=9ca791bbd464d7968db1530b433cc397a4c348c1'/>
<id>9ca791bbd464d7968db1530b433cc397a4c348c1</id>
<content type='text'>
Add temperature sensor support for iMac 6.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Tested-by: Caleb Hyde &lt;caleb.hyde@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add temperature sensor support for iMac 6.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Tested-by: Caleb Hyde &lt;caleb.hyde@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: add support for Macbook 4</title>
<updated>2008-11-13T01:17:16+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2008-11-12T21:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=468cc0320ed083e26364d9febde2679d981ed6a6'/>
<id>468cc0320ed083e26364d9febde2679d981ed6a6</id>
<content type='text'>
This patch adds accelerometer and temperature sensor support for Macbook 4.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds accelerometer and temperature sensor support for Macbook 4.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Cc: Nicolas Boichat &lt;nicolas@boichat.ch
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: applesmc: add support for iMac 8</title>
<updated>2008-11-06T23:41:17+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2008-11-06T20:53:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=eefc488f96cdde6e152b45675b50bf380b95d99f'/>
<id>eefc488f96cdde6e152b45675b50bf380b95d99f</id>
<content type='text'>
Add temperature sensor support for iMac 8.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Tested-by: Klaus Doblmann &lt;klaus.doblmann@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add temperature sensor support for iMac 8.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Tested-by: Klaus Doblmann &lt;klaus.doblmann@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
