Commit Graph
693 Commits
Author SHA1 Message Date
Jean Delvare d3fa22cae3 Make sure that temp2 and temp3 are not disabled. Let's just hope
it won't cause trouble if these channels are actually not connected.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2872 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-26 21:42:04 +00:00
Jean Delvare c06a1850ff Support the secondary Super-I/O address (0x4e/0x4f). This is a
backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2870 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-26 21:07:40 +00:00
Jean Delvare cb2e5b3d27 Cleanups backported from Linux 2.6 by Aurelien Jarno.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2868 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-26 19:49:11 +00:00
Jean Delvare 1756f8d8dd Drop unused client id.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2867 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-23 18:02:43 +00:00
Jean Delvare 64eeab4ffa Use standard LSB (0.5 degree C) for AS99127F temp2 and temp3.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2865 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-23 09:10:34 +00:00
Jean Delvare 5d53492dde Sync with mkpatch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2864 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-23 09:07:57 +00:00
Jean Delvare 400835efca Reduce range of accepted I2C addresses.
Differenciate between it87 and it8712.
Enable VID for it8712.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2862 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-22 15:46:50 +00:00
Jean Delvare 32cc706dd6 Cleanup detection function (backport from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2860 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-22 13:52:07 +00:00
Jean Delvare 89c7dabb13 Fix compilation broken by previous patch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2854 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-20 19:48:55 +00:00
Jean Delvare ba51b5f66e Fix chip detection with newer revisions of the DS1621. Reported
by Peter A. Henning, patch by Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2853 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-19 22:19:44 +00:00
Jean Delvare b6728ccd48 Support IT8705F Super-I/O. Check for logical device activation.
Display chip name and revision when found. (backport from Linux 2.6)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2846 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-13 20:08:20 +00:00
Jean Delvare b6f200507b Fix incorrect bitmask in PWM clock select debug message.
Reported by Mohan Mistry.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2845 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-12 19:26:53 +00:00
Jean Delvare 2c5efab510 Delete unused semaphore.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2839 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-07 20:30:20 +00:00
Jean Delvare f746f446f7 Fix PCF8574 chips being improperly tagged as PCF8574A chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2838 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-07 20:25:48 +00:00
Jean Delvare aa1f43f680 Do not return negative values to i2c_detect on non-fatal errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2837 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-07 20:21:58 +00:00
Jean Delvare da76debaa5 Kill double variable initialization.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2836 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-07 20:17:30 +00:00
Mark M. Hoffman 9b230178b9 patch by David Knierim:
> [...] I've also included a simple patch to lm93.c to
> increase the wait between retries if there is a timeout.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2835 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-06 22:16:37 +00:00
Jean Delvare c89c31cd52 Better VID support for the W83627THF (backport from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2828 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-04 19:57:58 +00:00
Jean Delvare 54a9669491 Don't include <linux/version.h> since we don't need to.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2826 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-04 16:26:51 +00:00
Mark D. Studebaker e958e52598 (mds) fix compile error of mine. Thanks Axel.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2817 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-31 14:12:37 +00:00
Jean Delvare 987686721c Fix MAX6657, MAX6658 and MAX6659 detection (backport from Linux
2.6).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2816 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-29 11:00:18 +00:00
Jean Delvare c4d3e5f0fd Discard the SPD-centric checksum module parameter.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2814 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-29 10:43:57 +00:00
Jean Delvare 4a41567854 Include sensors_compat.h for __devexit_p (only exists since
kernel 2.4.17).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2802 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-22 17:46:24 +00:00
Mark D. Studebaker b92d85efbc fix lm93_read_block which was retrying even on success.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2788 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-07 15:32:19 +00:00
Jean Delvare 7683ac84a4 Restore controlling_mod argument to i2c_register_entry(). This
is needed to properly lock chip drivers in memory while anyone uses their
/proc entries. This also brings back compatibility with the 2.4 Linux
kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2784 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-04 21:18:34 +00:00
Jean Delvare 30e56573c6 Fix typo breaking compilation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2783 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-03 22:37:27 +00:00
Jean Delvare e9d2eaef30 Discard owner field from i2c_driver structure. I do not restore
inc_use/dec_use because they are not actually used anywhere.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2781 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-03 22:32:17 +00:00
Mark M. Hoffman e4019c9899 Limit SMBus scanning to just one address - the only one we've
ever seen in practice.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2773 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-26 03:25:51 +00:00
Mark D. Studebaker 8f73f9beed baseline checkin of virtual adapter code from Ken Harrenstien
<klh@google.com> received Sept. '04.
      No changes by me other than include file path fixups.
      Compiles, but will not insmod without i2c-core changes
      or stubs to add xxx_nolock() functions.

-----------------

Here you go.  I apologize for the fact this code is not integrated
into the lm_sensors package structure and thus will require you to
make various little updates.  But I really wanted to get this out
before I'm yanked away again, and am pretty sure you can do it much
faster than I can figure out what needs to be done!

BTW the kernel files are built against 2.4.x where x varies; 18 and 19
should work.

Feel free to clean up anything.

--Ken

On Sat, 18 Sep 2004, Mark Studebaker wrote:

>>> > On Tue, 7 Sep 2004, Mark Studebaker wrote:
>>
>>>> >>sure, send it over.
>>>> >>Sorry for delay, your mail got buried by other mail and just now spotted it.
>>>> >>mds
>>>> >>
>>>> >>Ken Harrenstien wrote:
>>>> >>
>>>
>>>>> >>>It turned out to be a while before I could get back to this, but
>>>>> >>>everything's been working for a while now and I'd like to send in the
>>>>> >>>new pca954x driver.
>>>>> >>>
>>>>> >>>I was looking at the list in the "new_drivers" file -- it *is* kind of
>>>>> >>>intimidating.  Since some of the changes affect core i2c files, I was
>>>>> >>>hoping that what I could do to start with is just send you a tar of
>>>>> >>>the modified files in their entirety, or a patch-diff of the changes
>>>>> >>>against the 2.8.7 distribution, so you can scope things out and verify
>>>>> >>>they're on the right track for acceptance.  The following files are
>>>>> >>>the ones I've changed so far:
>>>>> >>>
>>>>> >>>        New:
>>>>> >>>                Documentation/i2c/virtual_i2c
>>>>> >>>                drivers/i2c/i2c-virtual.c
>>>>> >>>                drivers/sensors/pca954x.c
>>>>> >>>                include/linux/i2c-virtual.h
>>>>> >>>        Patched:
>>>>> >>>                Documentation/Configure.help
>>>>> >>>                drivers/i2c/Makefile
>>>>> >>>                drivers/i2c/Config.in
>>>>> >>>                drivers/i2c/i2c-core.c
>>>>> >>>                drivers/sensors/Makefile
>>>>> >>>                drivers/sensors/Config.in
>>>>> >>>                include/linux/i2c-id.h
>>>>> >>>                include/linux/i2c.h
>>>>> >>>
>>>>> >>>
>>>>> >>>I plan to write some additional doc once I know that the code itself
>>>>> >>>is acceptable, and you then can tell me what other files need to be
>>>>> >>>updated.
>>>>> >>>
>>>>> >>>To answer a couple other issues you raised:
>>>>> >>>
>>>>> >>>On Thu, 24 Jun 2004, Mark Studebaker wrote:
>>>>> >>>
>>>>> >>>
>>>>> >>>
>>>>
>>>>>> >>>>(copying the mailing list, already forwarded the first mail to the list)
>>>>>> >>>>
>>>>>> >>>>First I want to ask whether you are working on kernel 2.4 or 2.6.
>>>>
>>>>> >>>
>>>>> >>>
>>>>> >>>2.4.
>>>>> >>>
>>>>> >>>
>>>>> >>>
>>>>
>>>>>> >>>>Third, you may not have realized that Khali recently did a (2.4 kernel) pca9540 driver.
>>>>>> >>>>It is in our sensors package. It however doesn't do any of the bootstrapping or
>>>>>> >>>>bus registering either. It may or may not help you.
>>>>
>>>>> >>>
>>>>> >>>
>>>>> >>>I saw it in the 2.8.7 distrib, and used parts of it as a template.
>>>>> >>>The pca954x driver will support that chip, although the external /proc
>>>>> >>>interface it presents is necessarily different.
>>>>> >>>
>>>>> >>>--Ken


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2765 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-21 16:56:23 +00:00
Mark D. Studebaker d7ade70215 support "linearization function" 1/x.
Modified from a patch by Peter Wilsmore <pwilsmore@asi.com.au>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2763 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-20 01:55:10 +00:00
Mark D. Studebaker d7dca796b2 add support for 47M15x and 47M192 (fans only)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2761 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-20 00:09:48 +00:00
Jean Delvare 1779f0dc81 Delete unused syperio_outb inline function. This is a backport
from a 2.6 kernel patch by Adrian Bunk.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2752 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-06 08:29:21 +00:00
Jean Delvare 3457c6112a Refine byte read retry on error. Patch by David Knierim.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2748 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-26 20:43:54 +00:00
Mark M. Hoffman 3512e8eb8e bugfix by Axel Thimm <Axel.Thimm@ATrpms.net>:
> Building (the real) 2.8.8 on RH7.3 uncovered a small C99-ism, patch
> against CVS is attached.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2746 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-26 01:17:22 +00:00
Mark M. Hoffman f583bf7d8a bugfix: typo in dynamic VID alarms
also adds a couple log messages for failed transactions
patch by David Knierim <david_knierim@earthlink.net>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2744 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-22 04:26:45 +00:00
Jean Delvare ef1168c6b6 Missing s in comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2743 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-17 11:10:40 +00:00
Jean Delvare d49077fd70 Clean init function:
* Do not reset the chip.
* Preserve configuration bits we don't explicitely write to.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2736 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-16 09:46:37 +00:00
Mark M. Hoffman c9b412f57c bugfixes:
* read dynamic VCCP error status for IN7 & IN8 (if we're in that mode)
 * unmask #VRDHOT and dynamic VCCP (if we're in that mode) error events
 * move 'start monitoring' command to the end of the inits


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2734 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-15 04:28:42 +00:00
Jean Delvare ee346718b8 New lm63 driver for National Semiconductor's LM63 temperature
sensor with integrated fan monitoring and control.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2726 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-13 20:53:30 +00:00
Jean Delvare a8379104e0 Use signed types for temperatures.
Check limits on register writes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2724 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-11 20:36:45 +00:00
Jean Delvare 34f6be661f Alarms fit on u8.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2723 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-11 18:17:22 +00:00
Mark M. Hoffman 5f725e2360 bugfix: alarms no longer permanently sticky
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2722 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-11 17:37:07 +00:00
Jean Delvare 7ac7c27b19 Resync module list with mkpatch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2720 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-10 12:36:09 +00:00
Jean Delvare 05400f3b63 Retry on read errors. Contributed by David Knierim.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2719 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-10 12:03:48 +00:00
Jean Delvare d8ef10c0aa Fix two debug printks.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2718 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-10 11:50:31 +00:00
Jean Delvare c9f349808d Cleanup various macros.
Round voltages properly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2717 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-09 19:21:21 +00:00
Mark M. Hoffman a16a6e40d6 Added module parameter for VID pin input thresholds.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2715 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-08 21:27:15 +00:00
Jean Delvare ac1e03ece7 Fix broken debug message.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2714 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-08 19:28:54 +00:00
Jean Delvare 79fa06b727 Support secondary Super-I/O address (0x4e/0x4f).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2713 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-08 18:42:07 +00:00
Jean Delvare ac81893796 Fix init: no chip reset, discard usless code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2693 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-19 17:39:08 +00:00