Commit Graph
1135 Commits
Author SHA1 Message Date
Jean Delvare e1ddded53b Drop useless instruction. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3125 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-17 19:29:17 +00:00
Jean Delvare 17e1b0c907 Add missing parentheses to some macros. Same was done to i2c.h
some months ago but we omitted to do the same in i2c-dev.h.
Drop I2C_FUNC_SMBUS_EMUL, it is meant as a convenient shortcut for plain
I2C bus drivers and has no use in user-space.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3107 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-29 18:03:23 +00:00
Jean Delvare f55e5038a3 Syncronize i2c_msg definition with i2c.h. Patch from Hideki
Iwamoto. Without this, I2C_RDWR ioctl does not work correctly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3105 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-27 18:11:57 +00:00
Jean Delvare d541844ecc Discard I2C_ACK_TEST, which was commented out and never really
existed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3103 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-26 17:35:48 +00:00
Jean Delvare 739986c1db The i2c_smbus_data union block member has a comment stating that an
extra byte is required for block process call SMBus transactions. This
has been true for three weeks around June 2002, but no more since, so
it is about time that we drop this comment and fix the definition.
Spotted by Hideki Iwamoto.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3100 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-24 09:40:14 +00:00
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
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 cddd9a51f5 Kill two useless macro and an out-of-date comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3047 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-29 17:58:17 +00:00
Jean Delvare 53df3c69b8 Tag device find functions __init, as they are called from __init
functions.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3044 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-24 13:53:48 +00:00
Jean Delvare cb8d82d797 Drop useless casts in init code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3037 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-16 16:01:09 +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 1b22e84168 Discard bogus comment. Backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3026 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-23 22:12:02 +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
Mark M. Hoffman 617cc1313e Fix broken kfree() calls.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3017 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-11 20:35:21 +00:00
Mark M. Hoffman a006f300b3 Fix memory leak.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3015 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-11 20:16:28 +00:00
Jean Delvare 0cf832856d Properly handle the W83792D alarms. Patch from Chunhao Huang.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3014 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-06 19:22:52 +00:00
Jean Delvare dc45c4d801 Indentation cleaups from Chunhao Huang.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3013 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-06 18:54:45 +00:00
Rudolf Marek b32aa3c716 Update from Huang - w83792d_driver-1.0.5.patch, alarms handling fixed
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3012 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-01 10:49:04 +00:00
Jean Delvare dfb54c46a1 Fix typo in comment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3008 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-28 08:06:30 +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
Mark D. Studebaker 286deec334 allow setting fan divisor to 128. patch from Jarkko Lavinen
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2997 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-11 17:17:21 +00:00
Jean Delvare 45a427e291 Do not incude kernel/delay.h, as we don't need it. Spotted by
Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2995 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-10 18:46:39 +00:00
Jean Delvare fcc01c5c83 Spelling fixes. Contributed by Steven Cole.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2994 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-10 18:43:48 +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
Jean Delvare f922d71607 Fix PWM polarity on read, hopefully for good this time.
Fix broken comment about PWM enable bit.
Clean up the PWM enable/disable code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2981 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-04-24 18:22:10 +00:00
Jean Delvare ed7efcf02d The w83792d driver is now included by mkpatch.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2976 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-04-16 13:23:24 +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 37b65044fe Do not assume anything on subclient addresses.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2966 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-04-11 21:06:48 +00:00
Jean Delvare 78d71d5ccd Add EMC6D102 support. Original patch by Rafael Espindola.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2961 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-30 16:57:01 +00:00
Mark D. Studebaker 3c842108c4 negative temperatures fix from Chunhao
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2960 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-29 06:49:34 +00:00
Jean Delvare 4d165ff285 Backport ADT7461 support from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2954 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 13:34:47 +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
Jean Delvare 352655ff7d Skip fan_div initialization for disabled fans. This is a
backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2949 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 11:58:23 +00:00
Jean Delvare 506fee471d Kill useless ALARMS_FROM_REG macro. This is a backport from
Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2948 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 11:56:29 +00:00
Jean Delvare 24c4f308b4 Use s8 instead of u8 for temperature. This simplifies the
temperature conversion macros quite a bit, and fixes a bug with negative
temperatures as a side effect.
This is a backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2947 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 10:48:27 +00:00
Jean Delvare 5916574d33 Backport Vaio EEPROM detection bug from Linux 2.6.
http://archives.andrew.net.au/lm-sensors/msg30047.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2946 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 10:42:44 +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
Mark D. Studebaker 9ac1d40ae6 fix negative fan values. Patch from Chunhao.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2941 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-27 01:44:27 +00:00
Jean Delvare 72a3c7ac3b Stop updating non-existent vid on IT8705F.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2940 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-25 20:23:22 +00:00
Mark D. Studebaker bff323e3ca support IPMI version 0.9.
Patch from Yani Ioannou <yani.ioannou@gmail.com>
      http://bmcsensors-26.sourceforge.net/
      and tested by him and others,
      based on a previous patch from
      Vladislav Bogdanov <slava@nsys.by> located here:
      http://bubble.nsys.by/projects/ipmi/


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2934 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-19 02:50:35 +00:00
Jean Delvare f78a6c2310 Change the ADT7463 identification rules. Patch by Philip Pokorny.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2933 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-18 22:16:54 +00:00
Mark D. Studebaker e6bff4c2b6 add subclient registration
Change default to init=0


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2931 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-15 19:27:28 +00:00
Mark D. Studebaker e25e3511f4 w83792d driver and userspace support patch from Winbond.
by Chunhao Huang <huang0@winbond.com.tw>
         submitted by <DZShen@winbond.com.tw>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2925 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-10 19:03:52 +00:00
Mark M. Hoffman c6b95bf7e3 Patch by David Knierim <david_knierim@earthlink.net> to fix IN10
(+5V) scaling

>    I have been hunting down an issue related to the IN10 input of the
> LM93.   I have observed that there is a rather large error between the
> actual voltage and the voltage level displayed by sensors(1)  (~ .12V).
>
> Please find attached a small patch that fixes this problem.   The data
> sheet is very ambiguous and I and another engineer made the same mistake
> calculating the voltage per DAC step the first time we read the spec sheet.
>
> The confusion stems from an entry in the "maximum voltage" column that
> is higher than the value in the "absolute maximum range" column.  For 5V
> only, the value in the "register reading at maximum voltage" is for the
> voltage in the "absolute maximum range", NOT the "maximum voltage".  Whew!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2924 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-10 03:45:34 +00:00
Jean Delvare 49aa0ea2b7 Drop pwmenable, as pwm cannot be disabled. This is a backport
from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2923 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-03-09 21:09:52 +00:00