<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/hwmon, branch tegra-10.8.3</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>[driver/sensor] lm90: Adding suspend-resume for nct1008.</title>
<updated>2010-08-29T21:45:54+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-08-12T09:17:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7741beea207d8c45514ebb27e71056a672efbd84'/>
<id>7741beea207d8c45514ebb27e71056a672efbd84</id>
<content type='text'>
Suspending the device nct1008 before going to suspend
and reconfiguring at the time of system resume.

This is implemneted for the nct1008 which is adt7461 type
device.

Change-Id: Iecfb33819d0427e2ab2bb1f8eed0066222e5793f
Reviewed-on: http://git-master/r/4800
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Tested-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: Suresh Mangipudi &lt;smangipudi@nvidia.com&gt;
Tested-by: Suresh Mangipudi &lt;smangipudi@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Suspending the device nct1008 before going to suspend
and reconfiguring at the time of system resume.

This is implemneted for the nct1008 which is adt7461 type
device.

Change-Id: Iecfb33819d0427e2ab2bb1f8eed0066222e5793f
Reviewed-on: http://git-master/r/4800
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Tested-by: Bitan Biswas &lt;bbiswas@nvidia.com&gt;
Reviewed-by: Suresh Mangipudi &lt;smangipudi@nvidia.com&gt;
Tested-by: Suresh Mangipudi &lt;smangipudi@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[driver/hwmon] lm90: Adding nct1008 as supported list.</title>
<updated>2010-08-19T20:41:58+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-08-12T07:49:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=26fb5db1a0d0d75cb980c8070ea01d54a1a2a35b'/>
<id>26fb5db1a0d0d75cb980c8070ea01d54a1a2a35b</id>
<content type='text'>
The ON semiconductor's temperature sensor NCT1008 is
driver compatible with National semicondutor's LM90
driver.
Adding NCT1008 as the list of lm90 driver id table.

Change-Id: I3dcbe1cdd1441e5196239551265444ebb633a1a2
Reviewed-on: http://git-master.nvidia.com/r/5080
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ON semiconductor's temperature sensor NCT1008 is
driver compatible with National semicondutor's LM90
driver.
Adding NCT1008 as the list of lm90 driver id table.

Change-Id: I3dcbe1cdd1441e5196239551265444ebb633a1a2
Reviewed-on: http://git-master.nvidia.com/r/5080
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[driver/mm_ak8975]: Adding suspend/resume functions.</title>
<updated>2010-08-14T00:33:13+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-08-05T06:20:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b16a29319c1f1d1ae54774f7f574dfc5622f6ab2'/>
<id>b16a29319c1f1d1ae54774f7f574dfc5622f6ab2</id>
<content type='text'>
For the power managementi functionality for the device magnetometer ak8975,
added the power suspend and resume functions.

Change-Id: I40bc799d77dcbcc419200d9a6b6622415b520246
Reviewed-on: http://git-master/r/4790
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the power managementi functionality for the device magnetometer ak8975,
added the power suspend and resume functions.

Change-Id: I40bc799d77dcbcc419200d9a6b6622415b520246
Reviewed-on: http://git-master/r/4790
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[kernel/driver]: Driver for Ambient Light Sensor ISL29018.</title>
<updated>2010-07-17T17:08:34+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-07-16T07:48:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=00e164f27c26c86460c1f986e857cf5ada79868f'/>
<id>00e164f27c26c86460c1f986e857cf5ada79868f</id>
<content type='text'>
Adding the new kernel driver for the ambient light sensor which
provides the light intensity measurement functionality.

This kernel driver provides the sysfs interface to change the
property and read the lux information. Following sysfs interface
are available:

op_mode: set the opertaing mode as 0 for power down and 1 for
         conversion.
min_range: Set the minimum range for the light sensing.
max_range: Set the maximum range for the light sensing.
show_lux: To get the current light intensity in lux. This is
          blocking call and convesrion start once this file is
          read.

The driver can be enabled by setting the CONFIG_HWMON to y and
CONFIG_SENSORS_ISL29018 to y in the defconfig. The board information
for device can be provided through odm init code.

Change-Id: Ifaf2cb322506efc27005980d6924bcc69ff9725f
Reviewed-on: http://git-master/r/2546
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding the new kernel driver for the ambient light sensor which
provides the light intensity measurement functionality.

This kernel driver provides the sysfs interface to change the
property and read the lux information. Following sysfs interface
are available:

op_mode: set the opertaing mode as 0 for power down and 1 for
         conversion.
min_range: Set the minimum range for the light sensing.
max_range: Set the maximum range for the light sensing.
show_lux: To get the current light intensity in lux. This is
          blocking call and convesrion start once this file is
          read.

The driver can be enabled by setting the CONFIG_HWMON to y and
CONFIG_SENSORS_ISL29018 to y in the defconfig. The board information
for device can be provided through odm init code.

Change-Id: Ifaf2cb322506efc27005980d6924bcc69ff9725f
Reviewed-on: http://git-master/r/2546
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[kernel/driver]: Driver for the magnetometer AK8975</title>
<updated>2010-07-16T01:44:14+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2010-07-13T07:08:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d134018822b6149c7d5f0a2c6ceb7368be7e772f'/>
<id>d134018822b6149c7d5f0a2c6ceb7368be7e772f</id>
<content type='text'>
Adding the new kernel driver for the magnetometer which provides the
compass functionality.

This kernel driver provides the sys fs interface to change the property
and read the flux information. Following sysfs interface are available:
mode: set the opertaing mode as 0 for power down and 1 for conversion.
show_flux: To get the current flux data in x, y, z axis. This is blocking
call and conversion start once this file is read. The return
value in microTesla (uT).

The driver can be enabled by setting the CONFIG_HWMON to y and
CONFIG_SENSORS_AK8975 to y in the defconfig. The board information
for device can be provided through odm init code.

Change-Id: If9fe4873835f65579254669aeb915717eeb30834
Reviewed-on: http://git-master.nvidia.com/r/2544
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding the new kernel driver for the magnetometer which provides the
compass functionality.

This kernel driver provides the sys fs interface to change the property
and read the flux information. Following sysfs interface are available:
mode: set the opertaing mode as 0 for power down and 1 for conversion.
show_flux: To get the current flux data in x, y, z axis. This is blocking
call and conversion start once this file is read. The return
value in microTesla (uT).

The driver can be enabled by setting the CONFIG_HWMON to y and
CONFIG_SENSORS_AK8975 to y in the defconfig. The board information
for device can be provided through odm init code.

Change-Id: If9fe4873835f65579254669aeb915717eeb30834
Reviewed-on: http://git-master.nvidia.com/r/2544
Reviewed-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Tested-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Reviewed-by: Gary King &lt;gking@nvidia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (adt7462) Wrong ADT7462_VOLT_COUNT</title>
<updated>2010-02-23T15:37:45+00:00</updated>
<author>
<name>Ray Copeland</name>
<email>ray.copeland@aprius.com</email>
</author>
<published>2010-02-05T18:58:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ea5d622831d40005e9219658d4987b1efd2350ab'/>
<id>ea5d622831d40005e9219658d4987b1efd2350ab</id>
<content type='text'>
commit 85f8d3e5faea8bd36c3e5196f8334f7db45e19b2 upstream.

The #define ADT7462_VOLT_COUNT is wrong, it should be 13 not 12. All the
for loops that use this as a limit count are of the typical form, "for
(n = 0; n &lt; ADT7462_VOLT_COUNT; n++)", so to loop through all voltages
w/o missing the last one it is necessary for the count to be one greater
than it is.  (Specifically, you will miss the +1.5V 3GPIO input with count
= 12 vs. 13.)

Signed-off-by: Ray Copeland &lt;ray.copeland@aprius.com&gt;
Acked-by: "Darrick J. Wong" &lt;djwong@us.ibm.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 85f8d3e5faea8bd36c3e5196f8334f7db45e19b2 upstream.

The #define ADT7462_VOLT_COUNT is wrong, it should be 13 not 12. All the
for loops that use this as a limit count are of the typical form, "for
(n = 0; n &lt; ADT7462_VOLT_COUNT; n++)", so to loop through all voltages
w/o missing the last one it is necessary for the count to be one greater
than it is.  (Specifically, you will miss the +1.5V 3GPIO input with count
= 12 vs. 13.)

Signed-off-by: Ray Copeland &lt;ray.copeland@aprius.com&gt;
Acked-by: "Darrick J. Wong" &lt;djwong@us.ibm.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (lm78) Request I/O ports individually for probing</title>
<updated>2010-02-23T15:37:45+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2010-02-05T18:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3f28a62b9db311d6f45a5b0d7a9b2d4daae4afe1'/>
<id>3f28a62b9db311d6f45a5b0d7a9b2d4daae4afe1</id>
<content type='text'>
commit 197027e6ef830d60e10f76efc8d12bf3b6c35db5 upstream.

Different motherboards have different PNP declarations for LM78/LM79
chips. Some declare the whole range of I/O ports (8 ports), some
declare only the useful ports (2 ports at offset 5) and some declare
fancy ranges, for example 4 ports at offset 4. To properly handle all
cases, request all ports individually for probing. After we have
determined that we really have an LM78 or LM79 chip, the useful port
range will be requested again, as a single block.

This fixes the driver on the Olivetti M3000 DT 540, at least.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 197027e6ef830d60e10f76efc8d12bf3b6c35db5 upstream.

Different motherboards have different PNP declarations for LM78/LM79
chips. Some declare the whole range of I/O ports (8 ports), some
declare only the useful ports (2 ports at offset 5) and some declare
fancy ranges, for example 4 ports at offset 4. To properly handle all
cases, request all ports individually for probing. After we have
determined that we really have an LM78 or LM79 chip, the useful port
range will be requested again, as a single block.

This fixes the driver on the Olivetti M3000 DT 540, at least.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (w83781d) Request I/O ports individually for probing</title>
<updated>2010-02-23T15:37:45+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2010-02-05T18:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3659b59c77436fb29437cb57cdd72a26de0ded8c'/>
<id>3659b59c77436fb29437cb57cdd72a26de0ded8c</id>
<content type='text'>
commit b0bcdd3cd0adb85a7686b396ba50493871b1135c upstream.

Different motherboards have different PNP declarations for
W83781D/W83782D chips. Some declare the whole range of I/O ports (8
ports), some declare only the useful ports (2 ports at offset 5) and
some declare fancy ranges, for example 4 ports at offset 4. To
properly handle all cases, request all ports individually for probing.
After we have determined that we really have a W83781D or W83782D
chip, the useful port range will be requested again, as a single
block.

I did not see a board which needs this yet, but I know of one for lm78
driver and I'd like to keep the logic of these two drivers in sync.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit b0bcdd3cd0adb85a7686b396ba50493871b1135c upstream.

Different motherboards have different PNP declarations for
W83781D/W83782D chips. Some declare the whole range of I/O ports (8
ports), some declare only the useful ports (2 ports at offset 5) and
some declare fancy ranges, for example 4 ports at offset 4. To
properly handle all cases, request all ports individually for probing.
After we have determined that we really have a W83781D or W83782D
chip, the useful port range will be requested again, as a single
block.

I did not see a board which needs this yet, but I know of one for lm78
driver and I'd like to keep the logic of these two drivers in sync.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (fschmd) Fix a memleak on multiple opens of /dev/watchdog</title>
<updated>2010-01-28T23:02:27+00:00</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2010-01-25T14:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4d845d60ad3d385c43716c50fc7c87dd5d3466fe'/>
<id>4d845d60ad3d385c43716c50fc7c87dd5d3466fe</id>
<content type='text'>
commit c453615f77aa51593c1c9c9031b4278797d3fd19 upstream.

When /dev/watchdog gets opened a second time we return -EBUSY, but
we already have got a kref then, so we end up leaking our data struct.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit c453615f77aa51593c1c9c9031b4278797d3fd19 upstream.

When /dev/watchdog gets opened a second time we return -EBUSY, but
we already have got a kref then, so we end up leaking our data struct.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>hwmon: (adt7462) Fix pin 28 monitoring</title>
<updated>2010-01-18T18:19:43+00:00</updated>
<author>
<name>Roger Blofeld</name>
<email>blofeldus@yahoo.com</email>
</author>
<published>2010-01-10T19:52:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a61dcb0c6ac2aac895a17b37dcbe57b249a3d826'/>
<id>a61dcb0c6ac2aac895a17b37dcbe57b249a3d826</id>
<content type='text'>
commit bb595c923bc51dff9cdd112de18deb57ac7945d2 upstream.

The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding
shift must be 4.

Signed-off-by: Roger Blofeld &lt;blofeldus@yahoo.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit bb595c923bc51dff9cdd112de18deb57ac7945d2 upstream.

The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding
shift must be 4.

Signed-off-by: Roger Blofeld &lt;blofeldus@yahoo.com&gt;
Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</pre>
</div>
</content>
</entry>
</feed>
