Commit Graph
385 Commits
Author SHA1 Message Date
Jean Delvare f4302b1e59 Backport from Linux 2.6:
Add Broadcom HT-1000 south bridge's PCI ID to i2c-piix driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3276 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-24 09:47:29 +00:00
Jean Delvare 25e6966183 Add missing include for struct semaphore.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3251 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-07 10:15:27 +00:00
Jean Delvare dcf611d1c7 One more supported PCI ID for the i2c-nforce2 driver. This is a
backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3223 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-07 17:26:14 +00:00
Jean Delvare c6d1ade5fe Always set the SMBAUXCTL register (which enables/disables PEC)
explicitly before each transaction. Backport from Linux 2.6, original
patch from Mark M. Hoffman.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3221 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-07 15:30:18 +00:00
Jean Delvare 30cd73d63f Backport from Linux 2.6:
The tests leading to the use of hardware PEC in the i2c-i801 driver
can be simplified.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3178 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 18:40:17 +00:00
Jean Delvare 5467346e7b Backport SMBus PEC support rewrite from Linux 2.6:
The new SMBus PEC implementation doesn't support PEC emulation on
non-PEC non-I2C SMBus masters, so we can drop all related code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3177 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 17:11:47 +00:00
Jean Delvare c12c82c13d Backport SMBus PEC support rewrite from Linux 2.6:
Discard I2C_FUNC_SMBUS_*_PEC defines. i2c clients are not supposed to
check for PEC support of i2c bus drivers on individual SMBus
transactions, and i2c bus drivers are not supposed to advertise them.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3176 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 12:24:30 +00:00
Jean Delvare ee837eeb43 Sync with Linux 2.6:
* Adjust log messages on SMBus reset.
* Reformat comment.
* Change the module author string.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3164 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-31 11:53:26 +00:00
Jean Delvare c7e6cd782f List the i845G as supported. PCI IDs cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3160 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 15:04:13 +00:00
Jean Delvare b1a481683d Revert request_region name change, this one driver does not
register as a pci_driver, so it has no pci_driver name.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3150 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 10:16:22 +00:00
Jean Delvare 7f68d835a3 Backport from Linux 2.6:
Clean up name string usage in 11 i2c bus drivers:
* Use the pci_driver name for requesting the I/O region rather than
  redefining a new string.
* Do not initialize the i2c_adapter name to "unset".
This should save a few data bytes here and there.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3149 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 10:02:58 +00:00
Jean Delvare 8d04d78a29 Remove dead code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3148 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 09:58:08 +00:00
Jean Delvare 8abc37faf1 Improve register dump. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3143 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:47:49 +00:00
Jean Delvare 5aba57a4a9 Refactor a control outb. This allows for some other
simplifications. Backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3142 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:36:16 +00:00
Jean Delvare a181997776 Update the list of supported chips, stating which ones support
I2C block reads, and which don't. This is a backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3141 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:13:25 +00:00
Jean Delvare 2f6bd9c4c2 Code cleanups, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3140 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:04:11 +00:00
Jean Delvare 7eb393205c Support I2C block read when possible. This is a backport from
Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3139 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 19:48:20 +00:00
Jean Delvare 3d808fabd2 Coding style cleanups, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3138 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 19:15:56 +00:00
Jean Delvare 7f181abb2b Drop dead code, and fix annotations accordingly.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3136 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 18:44:48 +00:00
Jean Delvare a8ae1d4fb9 Drop useless cast on kmalloc return (backport from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3126 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-18 06:07:39 +00:00
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 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