Commit Graph
364 Commits
Author SHA1 Message Date
Jean Delvare 842c64de27 Kill an unused variable left over from a previous cleanup.
Backport from Linux 2.6, credits go to Andrew Morton.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3085 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-12 17:56:56 +00:00
Jean Delvare 060662c522 Remove bus probing code. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3073 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:49:53 +00:00
Jean Delvare 08bdbcac71 Remove dead code. Backport from a 2.6 kernel patch by
Hans-Frieder Vogt.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3072 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:16:18 +00:00
Mark D. Studebaker f876b23490 remove Chunhao's email addr at his request (no longer valid)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3029 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-28 03:49:19 +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 8aca9c7e34 Strip useless whitespace before new line at end of string.
Backport from a Linux 2.6 patch from Denis Vlasenko.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3024 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-23 20:56:13 +00:00
Rudolf Marek 576d7cc58c Added new Intel southbridge known as ESB2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2992 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-09 20:54:38 +00:00
Mark D. Studebaker 16f4429f8c (mds)
On 5/1/05, Sergey Vlasov <vsu@altlinux.ru> wrote:

>> Hello!
>>
>> http://openipmi.sourceforge.net/ provides patches for 2.4.x kernels
>> with updated IPMI code.  However, these patches change the IPMI driver
>> API by adding an additional argument to ipmi_request():
>>
>>  int ipmi_request(ipmi_user_t      user,
>>                  struct ipmi_addr *addr,
>>                  long             msgid,
>>                  struct ipmi_msg  *msg,
>> +                void             *user_msg_data,
>>                  int              priority);
>>
>> (user_msg_data is later returned in the struct ipmi_recv_msg field).
>> This API change breaks compilation of some lm_sensors drivers
>> (i2c-ipmb, i2c-ipmi).
>>
>> The patch below adds compatibility with the new IPMI API to i2c-ipmb
>> and i2c-ipmi drivers.  <linux/ipmi.h> does not provide a real
>> API-version #define, therefore IPMI_RESPONSE_RESPONSE_TYPE (also added
>> by the openipmi.sf.net patch) is (ab)used as a new API indicator.
>>
>> Compile tested only due to lack of hardware.

(Yani I.):

Hi Sergey,

Actually there was a patch to the 2.6 i2c-ipmi/bmcsensors for this
problem (after Bene Martin notified me of the problem and how to fix
it), but from what I understand Corey re-included the ipmi_request
method in the next version once he learned of a driver using it (it
was removed because there was thought to be no usage). He was eager to
learn when bmcsensors would make it into the kernel so that he could
stop being nagged by the 'unused function police' as he put it .

It might be wise to apply a patch like this in 2.4 to support the
openipmi that went 'wrong', I changed the 2.6 driver to use the
ipmi_request_settime function to no ill effect, but you should
consider that Corey notes that it is preferred to use the old one:

(extract from some e-mail between Corey, Martin and I about the problem):


>>>>>>Interestingly enough the ipmi_request_settime still has a comment in
>>>>>>the header "Don't use this unless you *really* have to.", making me
>>>>>>wonder if there is a reason not to be using it instead of ipmi_request
>>>>>>if its re-incorporated into the kernel.
>>>>>>
>>>>>>
>>
>>>>
>>>>I guess the only one qualified to answer that one would be corey.
>>>>
>>>>Bye, Martin
>>>>
>>>>
>
>>You wouldn't generally use it because it sets the timeouts and for most
>>purposes the timeouts are defined by the spec (sort of).
>>
>>Do you have any feeling when the BMC sensors package will go into the
>>mainstream kernel?  That would be the time to coordinate adding the
>>normal function back in so I'm not constantly fighting the unused
>>function police.
>>
>>-Corey


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2987 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-04 20:21:01 +00:00
Mark D. Studebaker e74dbb2dbb Backport from 2.6 by Chunhao Huang/Winbond as recvd 4/8/05
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2971 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-04-14 15:24:28 +00:00
Jean Delvare 09804db12d Prevent repeated resets on new variants of the VIA Pro (KT800).
This is done by not taking care of additional status bits. This is a
backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2953 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 12:38:59 +00:00
Mark D. Studebaker d2c47f4f5d add delay loops everywhere, as recommended by the ALI 1535 Bios Programming Guide.
Should fix stability problems.
      Patch by Ubel Walter <ubel@heidenhain.de>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2942 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 02:22:10 +00:00
Jean Delvare 5ee1b793e7 Add support for the nForce4. Patch from Hans-Frieder Vogt.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2909 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-17 21:40:14 +00:00
Mark D. Studebaker 01aafa1702 disable broken read i2c block functionality
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2897 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-09 01:05:32 +00:00
Jean Delvare a37fd5f9d2 Fix bogus return in a middle of a function. Patch by Sergio
Gelato.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2884 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-31 18:13:33 +00:00
Jean Delvare c0b57b8662 Limit block size with the relevant i2c constant instead of its
numeric value.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2876 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-27 21:26:02 +00:00
Jean Delvare 692b232bea Use the same symbolic name for ICH7 that Linux 2.6 does.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2858 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-22 11:02:40 +00:00
Jean Delvare 90016668df Kill legacy ifdef'd symbol exports.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2844 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-12 19:03:32 +00:00
Jean Delvare 997b0d93a2 Discard kernel 2.4.9 compatibility stuff (2.4.10 is the oldest
supported kernel).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2827 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-04 17:25:18 +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
Jean Delvare 669b853e67 Use more PCI ID defines instead of numerical values.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2813 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-29 10:40:27 +00:00
Jean Delvare dfb598d267 82801CA is undefined before kernel 2.4.13.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2803 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-22 20:07:38 +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
Jean Delvare 2003e65297 Support the nForce3 250Gb.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2797 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-18 22:09:56 +00:00
Mark D. Studebaker 24e6a69003 remove probe printk
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2794 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-08 22:11:34 +00:00
Mark D. Studebaker 6773d8e4e0 add support for upcoming ICH7 based on information from
Jason Gaston


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2793 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-08 21:20:13 +00:00
Mark D. Studebaker b6e48cb30f add i2c block read support for ich5 and higher. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2792 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-08 04:55:45 +00:00
Mark D. Studebaker ca07a1d985 ICH6 supports PEC as well (isich4 = 1)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2791 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-08 04:20:40 +00:00
Mark D. Studebaker 93a33a9915 clarify i2c block read error message
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2789 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-07 16:11:26 +00:00
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