Commit Graph
336 Commits
Author SHA1 Message Date
Jean Delvare d6666e1b72 Support the nForce2 Ultra 400.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2780 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-29 20:39:25 +00:00
Jean Delvare 25a70755cc Sync with recent core changes: i2c_algorithm and i2c_adapter lost
their owner member.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2778 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-27 09:56:21 +00:00
Jean Delvare a223ec0fd5 Remove owner from i2c_adapter, restore inc_use and dec_use
instead.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2772 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-25 21:51:18 +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
Jean Delvare 504b590bee Add nForce3 support. Patch by Thomas Leibold.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2759 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-16 18:58:26 +00:00
Jean Delvare 88bb42be00 New driver for SMBus multiplexing support on the Tyan S4882
motherboard.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2754 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-14 14:28:09 +00:00
Jean Delvare 78f0d3fc66 Rename amd756_adapter to amd756_smbus and export it. This is
needed for multiplexing support.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2753 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-11-14 14:22:37 +00:00
Mark D. Studebaker 2539071f16 comment out i2c-ipmb since it doesn't work
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2750 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-31 21:31:38 +00:00
Jean Delvare cbd983ce83 Display the read bus name. sensors-detect expect it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2740 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-16 17:11:39 +00:00
Mark D. Studebaker f1b420f2df from Vojtech Pavlik:
I'm sending you this little obvious patch which should enable i2c-piix
to work on IBM servers with ServerWorks chipsets. It still will treat
any IBM/Intel machine as a laptop and refuse to work, but it's better
than before.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2570 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-31 04:08:30 +00:00
Mark D. Studebaker 3e3273d369 add support for ICH6 and 6300ESB (backport of 2.6 patch)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2558 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-05-22 04:02:19 +00:00
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