Commit Graph
325 Commits
Author SHA1 Message Date
Mark D. Studebaker cf3e2b8cef remove unused variables
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2483 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-27 01:11:32 +00:00
Jean Delvare 24384fff35 Enable the i2c-nforce2 module in mkpatch.
Patch by Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2441 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-16 20:56:53 +00:00
Jean Delvare af741a7b4d Move IBM detection into dmi_scan.c.
Delete dmi_scan.h, now useless.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2423 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-07 18:36:19 +00:00
Mark D. Studebaker b81fc46380 add 655 support
patch from Ken Healy <k.healy@student.ucc.ie>

This patch experimentally enables SiS 655 support by the i2c-sis645 driver.

It simply modifies the driver to also accept the SiS 655 as a valid host
bridge.

Partially tested on a Gigabyte GA-SINXP1394 (SiS655/963), no problems so far.
Driver successfully enables the SMBus controller, i2cdetect finds the usual
devices, and i2cdump successfully reads the DIMM SPD eeprom's.

The patch is against the lm_sensors-2.8.5 release.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2415 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-06 02:01:09 +00:00
Jean Delvare 83bf546473 Define min_t if needed (ticket #1504).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2352 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-13 09:24:54 +00:00
Jean Delvare 60ad1861de Backport oops fix from Linux 2.6 (freeing nonexistent resource
on module unload if the hardware isn't present).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2300 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-21 07:38:43 +00:00
Jean Delvare 8422454e8e Fix i2c bus not being unregistered on module unload.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2299 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-20 21:32:18 +00:00
Jean Delvare 175d652425 Don't register driver to avoid driver conflicts. (Daniel
Rune Jensen)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2294 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-02-15 15:09:00 +00:00
Mark M. Hoffman c0d34c332e Backport of patch vs 2.6.1...
This patch fixes a "Trying to release non-existent resource" error that
occurs during rmmod when the device isn't actually present.  It includes
some other cleanups too: error paths, whitespace, magic numbers, __devinit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2248 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-01-27 02:47:35 +00:00
Jean Delvare 86b9b4a477 Cleanups (mostly from Daniel Nilsson).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2191 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-28 15:19:21 +00:00
Mark D. Studebaker 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Jean Delvare d1d3418754 amd7xx -> amd756 (suggested by Philip Pokorny).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2175 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 17:19:30 +00:00
Mark D. Studebaker 7e2d5f5fef fix byte writes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2166 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-13 23:39:23 +00:00
Jean Delvare fb12997188 Change the "Unusual config register" message. Patch more or
less by Tom Rini.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2158 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-12 22:50:33 +00:00
Jean Delvare 5bdbb3744f Display a message if a Force-CPCI735-like config register is
found. Should help debugging the problem.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2140 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-06 21:48:32 +00:00
Jean Delvare 0247cfa944 Fix byte writes used by eeprom.c. Similar to a recent fix made
to i2c-nforce2.c. Patch by Hans-Frieder Vogt <hfvogt@arcor.de>.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2127 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-01 19:39:00 +00:00
Jean Delvare e5483ca3b6 Cleanups (again).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2122 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 11:01:48 +00:00
Jean Delvare 0f00db6a1f Cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2121 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 09:47:56 +00:00
Jean Delvare d835fc770d Support AMD8111 again. Patch by from Philip Pokorny
<ppokorny@penguincomputing.com>.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2120 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-30 09:17:33 +00:00
Jean Delvare 72f129f3c2 Add support for KT600. Requested by Lou
<lm-sensors@fixit.nospammail.net>.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2109 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-29 16:51:04 +00:00
Jean Delvare f2fe6cbd68 Rehabilitate Alexander Wold as the driver's author.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2102 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-28 20:12:02 +00:00
Mark D. Studebaker 7d16642a33 hopefully fix byte writes used by eeprom.c
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2096 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-27 02:37:43 +00:00
Jean Delvare 9f8ececd48 Disable Tom Tini's workaround by default. It can be re-enabled
by using the (new) fix_hstcfg parameter.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2083 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-21 22:57:38 +00:00
Mark D. Studebaker 39faf50b41 add support for CSB6 based on confirmation in ticket #1424
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2027 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-27 03:03:47 +00:00
Alexander Malysh b1986134c3 (amalysh)
* i2c-sis630.c: sync with 2.6.0-X driver version


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2014 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-10-11 11:45:04 +00:00
Mark M. Hoffman 76c05536bf Use readl/writel for portable access to PCI memory
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1996 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-09-22 04:55:10 +00:00
Jean Delvare bb89ea05e3 Force CPCI735 bug workaround (patch by Tom Rini).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1961 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-14 22:28:42 +00:00
Mark M. Hoffman 69ef356b2c Prevent buffer overrun during SMBus Block Read when client responds
(mmh) with illegal read size.  Patch by Sergey Vlasov <vsu@altlinux.ru>.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1940 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-06 03:11:40 +00:00
Mark M. Hoffman 9791b06ae5 Fixes backported from 2.6 work by Greg KH:
(mmh) o remove devinitdata marking from i2c-nforce2.c as it's wrong
(mmh) o minor cleanups to the i2c-nforce2 driver


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1938 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-03 05:32:01 +00:00
Mark M. Hoffman 5b720a247d Fixed resource leak - patch by Daniele Bellucci <bellucda@tiscali.it>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1937 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-03 05:19:49 +00:00
Mark M. Hoffman e035136982 Added utility function i2c_delay(1), to replace various "do_pause"
(mmh) functions in bus drivers.  Backported from the 2.6 work of Greg KH.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1936 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-08-03 05:11:58 +00:00
Jean Delvare e4f94587c8 Remove 2.2 kernel compatibility macro.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1931 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-31 12:56:35 +00:00
Alexander Malysh bb6298c2f2 added block data read/write support. Minor cleanup.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1926 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-30 22:35:17 +00:00
Alexander Malysh 1843d33fb7 Fixed sis630 detection. We need ISA brigde and not the pci device
supplied by pci-core. Tickets #1350 and #1351 should be closed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1925 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-30 20:40:27 +00:00
Jean Delvare f7b40f84b3 Fix includes for compilation on Alpha.
Patch by Kelledin.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1912 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-28 09:57:11 +00:00
Mark M. Hoffman 8598dba3b6 Revise detection strategy (again) so that the driver claims the
SMBus pci device only - instead of also claiming the south bridge.
      Although no problems had been reported with the previous detection
      strategy, this change avoids the class of problems mentioned here:

      http://archives.andrew.net.au/lm-sensors/msg03193.html

As a side benefit, it now looks much more like its sibling in 2.5.7x.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1893 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-21 23:13:08 +00:00
Mark D. Studebaker e372b78cc5 don't use pci_module_init() for video i2c drivers so we don't
conflict with video drivers


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1833 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-07-03 01:30:13 +00:00
Jean Delvare abec4c64eb Fixed a compiler warning, plus some code clean-ups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1818 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-27 16:15:24 +00:00
Jean Delvare 2db3917eac Fixed a compiler warning.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1817 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-27 16:11:45 +00:00
Mark D. Studebaker 06ea29ef6c -Wall cleanup (returns in probe functions)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1814 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 01:21:04 +00:00
Mark D. Studebaker e9f1938938 restore functionality call that shouldn't have been removed
in cleanup. Dummy adapters must return 0, otherwise they
      will get assigned every functionality!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1812 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-23 00:56:25 +00:00
Mark M. Hoffman 35c08c894e Added missing PCI ID for 746. Also added comments noting in
(mmh) which release (> 2.4.9) the IDs were defined, if any.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1804 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 17:01:59 +00:00
Mark D. Studebaker 7e8d8dc3c7 -Wall cleanups
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1803 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-21 16:17:02 +00:00
Mark M. Hoffman f016bf233d Added a handful of blacklist PCI IDs.
(mmh) Fixed a trivial compiler warning.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1795 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-18 05:26:38 +00:00
Mark M. Hoffman d78cd69dd7 Added recognition of SiS746 host bridge.
(mmh) Addressed some trivial compiler warnings.
(mmh) Updated documentation.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1793 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-17 05:17:02 +00:00
Mark D. Studebaker b24442eed8 remove old gzipped modules;
remove old misc directory if empty


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1787 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-14 19:25:19 +00:00
Mark M. Hoffman f525a97656 added missing #include <linux/mm.h>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1786 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-12 03:29:38 +00:00
Mark D. Studebaker 79adb8ba49 check for invalid transaction type
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1778 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 01:07:54 +00:00
Mark D. Studebaker 8234f8c58a add support for 82801EB (ICH5) 0x24d3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1775 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:05:58 +00:00
Jean Delvare c4666742ca Added missing device IDs, required for compiling with Linux kernel
2.4.18 and previous (VIA_8233A and INTEL_82801DB_3).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1773 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 17:21:54 +00:00