Commit Graph
133 Commits
Author SHA1 Message Date
Jean Delvare 184cb1e3c7 Use real-time alarm registers instead of interrupt registers for
W83782D, W83627HF, W83783S and W83791D. This is a backport from Linux
2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3260 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-23 23:11:17 +00:00
Jean Delvare c23099c76d Drop a common comment about limits being set in initialization
functions. We no more do that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3147 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 09:05:58 +00:00
Jean Delvare 222cfb6918 Drop the W83697HF support from the w83781d driver. It is better
supported by the super-I/O w83627hf driver. Patch from Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3071 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:21:44 +00:00
Jean Delvare 1e982851ad Add missing space in multiline strings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3028 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-26 08:48:04 +00:00
Jean Delvare 5aed4be0e5 Fix common spelling errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3000 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-15 10:06:15 +00:00
Mark D. Studebaker 7f544464ad allow setting divisor to 128
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2999 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-12 14:51:34 +00:00
Jean Delvare ad276d8c4f Skip final initialization step for AS99127F chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2877 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-27 21:26:48 +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 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 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 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
Jean Delvare f52172bfbc Drop out-of-date init code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2599 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-19 16:24:57 +00:00
Mark D. Studebaker a535570d62 fix default VRM for w83791d; was undefined 9.2, now 9.0
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2598 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-19 16:17:49 +00:00
Jean Delvare 4e6fcb41d4 Backport memory allocation reworking from Linux 2.6.
Cleanup detach function.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2518 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-09 11:00:59 +00:00
Jean Delvare 4ef5ecd429 Inverse beep bits of the as99127f in the driver rather than in the
user-space.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2504 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-02 13:49:14 +00:00
Jean Delvare ff48783182 Use kernel's swab16 instead of our own function.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2437 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-13 17:52:59 +00:00
Jean Delvare bcfb34bcb7 Drop PWM support for as99127f. Update AS99127F docs.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2428 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-09 18:50:43 +00:00
Jean Delvare 03f3e08d48 w83781d driver doesn't support ASB100 anymore.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2313 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-23 20:25:27 +00:00
Jean Delvare f7b2534fba Preserve other bits when forcing temp2/3 to comparator mode.
Backported from Linux 2.6. Requested by Keith Duthie.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2302 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-21 14:10:31 +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 7549f42032 use lm75.h
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2171 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 03:38:28 +00:00
Mark D. Studebaker 06d823b430 remove initialization of limits by driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2071 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-18 02:37:31 +00:00
Jean Delvare 08cebfef4c Fix a bug in detection. Could have failed to detect the chip and
still return with no error code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2055 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-14 20:08:37 +00:00
Jean Delvare e574d476b5 Fix W83791D detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2034 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-28 19:17:04 +00:00
Jean Delvare 8b82c4d22d Fix W83627HF detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2025 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-25 18:53:48 +00:00
Mark M. Hoffman 6597650205 Trivial formatting fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2024 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-23 04:40:49 +00:00
Mark D. Studebaker 15490f82f5 fix up error returns; from 2.5 patch of MMH
* Greg KH <greg@kroah.com> [2003-06-02 10:20:40 -0700]:

> On Sun, Jun 01, 2003 at 10:38:08AM -0400, Mark M. Hoffman wrote:
> > > This patch against 2.5.70 works for me vs. an SMBus adapter.  It needs
> > re-testing against an ISA adapter since my particular chip is SMBus only.
>
> I've applied this and will send it off to Linus in a bit.


Thanks!

This patch fixes the various return values in the w83781d_detect()
error paths.  It also cleans up some formatting here and there.
It should be applied on top of the previous one.

It works for me; same caveat as above w.r.t. ISA.

Regards,

--
Mark M. Hoffman
mhoffman@lightlink.com


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1990 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-31 22:31:56 +00:00
Mark D. Studebaker 6815e0bafe Fix 697HF PWM (ticket 1207). Fix 791D PWM.
Fix 697HF V5SB and VBAT alarms.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1983 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-30 21:38:33 +00:00
Jean Delvare e61dd02edd Enhance chip detection (stricter).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1928 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-31 07:21:15 +00:00
Jean Delvare 5151325f0a Fix voltage rounding.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1882 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-16 07:42:23 +00:00
Mark D. Studebaker 2c31ea166c add w83791d detection, update documentation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1782 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 03:01:31 +00:00
Mark D. Studebaker 1755e4adc0 add 791d support. Patch from Ross Biro <rossb@google.com>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1772 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:45:46 +00:00
Mark D. Studebaker bbdef07b0e add 791D sysctls; IN9, FAN4, FAN5
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1753 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-02 23:44:58 +00:00
Mark M. Hoffman f5360dc279 (Re)added missing <ioport.h>.
Now compiles correctly w/ versioned symbols.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1709 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-31 04:00:33 +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 bd4049d06e update and standardize PWM support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1679 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-12-21 21:05:48 +00:00
Mark D. Studebaker ef2049dc50 fix in0/in1 initialization; patch from
Dave Johnson <ddj@cascv.brown.edu>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1545 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-09-21 22:11:56 +00:00
Mark D. Studebaker 8a7d9d7d07 add support for Asus ASB100 Bach. Patch from
"Mark M. Hoffman" <mhoffman@lightlink.com>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1486 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-08-04 19:01:35 +00:00
Albert Cranford 5f66e08cf8 Compile warnings uninitialized variables. Initialize to 0.
ACC 29jul02


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1470 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-30 03:00:22 +00:00
Mark D. Studebaker 927aae8b81 Initialize temp1-3 to "comparator" mode so that the ALARM
indication will always be valid; it won't be cleared forever by
      reading the register. Do this by setting temp1_hyst to 127
      and programming register 4C which sets it for temps 2 and 3.
      Don't print hyst. value for temp1 in 'sensors' if == 127.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1407 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-29 02:46:51 +00:00
Mark D. Studebaker 93022bef6c add programmable VRM support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1355 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-04-23 02:47:18 +00:00
Mark D. Studebaker 115f2db300 add force_subclients parameter which allows moving subclients
to different addresses; this allows initialization of two
      clients on the same i2c bus by preventing subclient address
      conflicts at 0x48 and 0x49.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1312 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-09 16:36:54 +00:00
Mark D. Studebaker 8f53105142 add w83697hf in7 and in8 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1254 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-28 02:50:57 +00:00
Mark D. Studebaker 5d4b07b1e9 add initial support for w83697hf to w83781d.
Similar to w83783s except no VID or fan3, and ISA only.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1246 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-21 01:01:17 +00:00
Mark D. Studebaker e7fc40b690 Add 'init' parameter to control initialization.
Use 'init=0' to skip initialization, this should fix
      those pesky PC's that crash when you load w83781d.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1209 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-10-22 01:20:48 +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