Commit Graph
24 Commits
Author SHA1 Message Date
Jean Delvare 239b3d0344 Backport memory allocation reworking from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2445 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-17 17:20:01 +00:00
Jean Delvare 342b8a2c04 Return error values in detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2431 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-10 14:09:50 +00:00
Jean Delvare 6b2f1e18bb Backport Takeru Komoriya's changes from Linux 2.6. This fixes
loading it87 with reset=1.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2316 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-28 15:46:46 +00:00
Jean Delvare e6d99aedb0 Consider it possible that sensor type is 0 (unused).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2311 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-22 17:48:16 +00:00
Jean Delvare 1fe75068d1 Do not include unneeded headers.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2286 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-12 21:46:36 +00:00
Mark D. Studebaker 1a8aa204f9 remove it87 fan_ctl initialization and init parameter;
update docs and sensors.conf


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2201 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-04 17:11:59 +00:00
Mark D. Studebaker d449ee538f remove initialization of temp_type accidentally left in. Ticket 1508.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2200 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-03 04:49:16 +00:00
Mark D. Studebaker ded7e313b1 add superio detection and driver support for it8712.
Subject:
              [PATCH] Re: SOLVED: Ticket #1409
         Date:
              Fri, 03 Oct 2003 16:48:32 +0200
        From:
              Bjørn Mork <bjorn@mork.no>
 Organization:
              m
          To:
              Mark Studebaker <mds@paradyne.com>
          CC:
              lm78@stimpy.netroedge.com, LM_Sensors developers <sensors@stimpy.netroedge.com>
   References:
              1 , 2 , 3




Bjørn Mork <bjorn@mork.no> writes:
> Mark Studebaker <mds@paradyne.com> writes:
>
>> If you port over the super i/o code from one of the 3 drivers listed
>> above
>> and send us a patch we'll include it.
>
> OK.  Will do.

Here's the patch as promised.  Took the code from smsc47m1.c.  It
currently only changes behaviour for the IT8712F since I cannot test
on any other IT87-chips, and the comments in sensors-detect made me
uncertain whether they really use the same key/exit sequence.

Also changed sensors-detect somewhat to support longer devids and exit
sequences.  Don't know if you'll approve my perl though...


Bjørn


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2170 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 00:54:10 +00:00
Mark D. Studebaker e8df7faa30 fix sensor type reporting. Thermistor would report as invalid
and vice versa.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2168 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 00:01:19 +00:00
Mark D. Studebaker cd79c469b2 fix sg_tlx /proc entries. Ticket #1476.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2159 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 01:09:50 +00:00
Mark D. Studebaker 972abea7df change pwm and smart guardian entries to 644 to enable writes.
note that pwm is non-standard and so 'fancontrol' still
      won;t work with this driver. Ticket #1429.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2143 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-07 23:57:51 +00:00
Jean Delvare a3c77b0191 Fix IN_FROM_REG rounding.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2124 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 11:40:20 +00:00
Mark D. Studebaker b048a1cac9 remove initialization of limits by driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2068 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-18 02:19:41 +00:00
Mark D. Studebaker b1741b5366 add sensor type selection in /proc for it87
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2053 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-12 01:36:12 +00:00
Mark D. Studebaker 34076ded72 pwm and smart guardian fan patch from
Michael Hufer <michael.hufer@freenet.de>

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

> First, I added a new mod parameter "reset_it87" which controls whether
> or not the chip is reset on module load (modprobe it87 reset_it=1,
> default) or not(modprobe it87 reset_it87=0).
> Since this worked out quiet nicely I decided to go one step further
> and also add the chips manual and automatic temperature controlled fan
> speed features (PWM etc.).
>
> Finally I also updated the doc to document the new features.
>
> Attached is a diff against the current cvs version.

------------------------
           Subject:
            Re: fan speed for it87?? chips added
      Date:
            Fri, 26 Sep 2003 23:28:35 +0200
      From:
            Michael Hufer <michael.hufer@freenet.de>
        To:
            sensors@Stimpy.netroedge.com, Jean Delvare <khali@linux-fr.org>

On Friday 26 September 2003 22:40, Jean Delvare wrote:
> > I found and fixed the little problem I had with the original chip
> > initialization. I can now load the module with reset_it87=0 and
> > init=1 without messing up the settings of the power supply fan
> > from the BIOS. It was quite simple after all.
>
> I'm interested in details, can you tell us what it was?

Sure, it actually was something I introduced myself :-(. I initialized the
fan_ctl register with  (read_value & 0x8f | 0x77) to enable the smart
guardian feature for all 3 fans. But the power supply fan does not support
pwm. It can only be operated in on/off mode, i.e. bit 0 must be clear. I
switched it back to the original  (rv & 0x8f | 0x70 ) and everything is back
to working.

> > Do you want me to send the latest diff?
>
> Sure I want.

 Here it comes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2033 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-28 02:20:31 +00:00
Kyosti Malkki 1cfe63804a (Kyösti) Cleanups
Copy sysctl enums to chip drivers from sensors.h for now,
   as seen in drivers included in 2.5 tree. File no longer included
   from kernel side.

   Apply i2c-proc change in CVS tagged -km2.

   Partial clean and sort of includes everywhere.

   Add i2c-dev.h, as a partial copy from i2c.
   Add to sensors.h from i2c-proc.h to compile things.
   Remove i2c-isa.h.

   Reflect header file changes to lib/ and prog/.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Kyosti Malkki 39391ba6ea (Kyösti) some cleanups for 2.4+
Module refcounting using .owner, removing of inc/dec_use.
   These require (yet unreleased) i2c 2.8.0+.

   Named initializers everywhere. Unified namespace.

   Cleanup for 2.5, remove EXPORT_NO_SYMBOLS, declare everything
   static. Apply initcalls.

   PCI device registration changes for busses started, replicating
   from i2c-amd*. While everything does compile, nothing really
   works. Well, maybe i2c-amd* ported back from 2.5 tree.

   After updating your work directory, run
    > cvs diff -u -r LAST-PRE-2-8-I2C > lm-2.8-patches-1

   BEWARE: I have not even insmoded any of these yet.

   To compile, you need i2c from cvs too.
   For 2.4 kernel :
    > cvs co -r lk2-4 i2c

   For 2.5 kernel :
    > cvs co i2c


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1698 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-17 01:19:52 +00:00
Mark D. Studebaker e836047a83 merge it87 separate alarms_* /proc entries to single alarms entry to standardize
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1202 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-14 15:18:37 +00:00
Mark D. Studebaker 7bd97f4667 Add MODULE_LICENSE("GPL") to all modules
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1201 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-13 17:48:43 +00:00
Mark D. Studebaker 5c91c75f11 malloc.h -> slab.h
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1193 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-09-29 18:32:15 +00:00
Mark D. Studebaker 147e70c39c Fix rather strange un-parenthesized "if" clause that somebody's
compiler tripped over, even though it shouldn't have.
      Ticket #638.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1162 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-08-18 22:08:03 +00:00
Mark D. Studebaker 739a87e785 Apply patch from David Gesswein:
The following patch does the following:

Fixed bug with not all alarms enabled.
Added ability to read battery voltage
Select temperature sensor type at module load time.
Added setting for Inside Technologies 786LCD board to example config file
I also fixed what looked like a typo in the existing it87 section where
in6_min/max was set twice and in7 was not set.  As commented I think
the equation for the negative voltages are wrong but without that motherboard
I can't verify.

With the 786LCD board sensors-detect reports a lm78 which doesn't
exist and a sis5595 which may be part of the SIS630 chip but doesn't
perform the monitoring.  The it8705F/SIS950 which is on the board is
reported as a misdetect.  I didn't know enough about the various chips
to figure out how to get correct detections.

David Gesswein


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1146 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-07-29 00:30:54 +00:00
Mark D. Studebaker bbe26a7de0 remove #include "i2c-isa.h" which is no longer used (its contents
were copied to i2c.h in the i2c package).
      No harm was done because i2c-isa.h is still in our package, and
      it87 is not included in mkpatch yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1132 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-16 00:37:20 +00:00
Mark D. Studebaker 87c529e96d Initial checkin of it87 driver from
Christophe Gauthron <chrisg@0-in.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1112 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-06-03 21:58:26 +00:00