Commit Graph
402 Commits
Author SHA1 Message Date
Jean Delvare f298680633 Add Intel ICH9 support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4252 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-12-03 15:08:15 +00:00
Rudolf Marek c857b40f7a Backport VT8237A and VT8251 support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4125 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-31 21:00:44 +00:00
Rudolf Marek 74a7992f19 Transion to new website, part2 - move more links, fix the CVS->SVN
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4064 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-02 20:15:09 +00:00
Jean Delvare 47bd9a6501 Various cleanups to the i2c-i801 driver:
* Fix self file name reference.
* i801_setup can be marked __devinit.
* Drop useless error local variable and label in i801_setup.
* Use symbolic names for SMBHSTCFG bits.
* Transmit the error code returned by i801_setup instead of forcing it
  to an arbitrary value.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4061 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 21:05:37 +00:00
Jean Delvare 21a1be7e49 i2c-i801: Remove PCI function check
Remove the PCI function number check when probing devices.
This check is redundant, each function has a separate PCI device
ID, so checking for that ID is sufficient.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4060 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 19:10:41 +00:00
Jean Delvare d98d0c0185 i2c-i801: Fix block transaction poll loops
Two of the three poll loops have the poll and sleep swapped,
causing an extra sleep to occur after the polled condition is
fulfilled. In practice, this doubles the amount of sleep time for
every block transaction.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4059 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 18:39:51 +00:00
Rudolf Marek 4538a94a5f Revert the last bus hang fix. Further research neccessary.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4057 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 17:43:54 +00:00
Jean Delvare 0ed4b1e3f3 Add support for the new nForce4 MCP51 (also known as nForce 410 or
430) and nForce4 MCP55 to the i2c-nforce2 driver. Some code changes
were required because the base I/O address registers have changed in
these versions. Standard BARs are now being used, while the original
nForce2 chips used non-standard ones. (2.6 backport)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4054 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 15:53:26 +00:00
Jean Delvare cff7834fe4 Properly document on which systems the i2c-piix4 SMBus driver will
refuse to load. Hopefully this will make it clearer for users, which
were often wondering why their destop or server systems were detected
as laptops.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4053 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 15:08:03 +00:00
Jean Delvare 4e98d0d9f2 i2c-piix4: Drop the fix_hstcfg parameter (2.6 backport)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4051 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 14:36:15 +00:00
Jean Delvare c33a248478 i2c-piix4: Add ATI IXP200, IXP300, IXP400 support (2.6 backport)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4050 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-23 13:45:08 +00:00
Rudolf Marek 0e29665c65 Backport of 2.6 - Workaround the controller hang
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4042 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-06 16:32:41 +00:00
Jean Delvare e6ba14f1bf i2c-viapro.c: Move definition of PCI IDs before they are used.
This fixes compilation with old kernels (2.4.20 and earlier). Thanks
to Yuan Mu for reporting.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4039 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-05 07:55:07 +00:00
Rudolf Marek 5eb8aa161d Add ICH8 support. 2.6 backport
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3304 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-23 11:23:53 +00:00
Jean Delvare fd2023d0cf Static semaphores can be initialized at declaration time. This is
a backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3292 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-14 14:59:37 +00:00
Jean Delvare c72b364135 Drop a redundant semaphore. The struct i2c_adapter includes a
semaphore for the same purpose, operated by i2c-core. This is a backport
from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3291 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-14 14:39:50 +00:00
Jean Delvare 4bab489796 Reset the PEC bit after every transaction. This partly reverts the
previous change. This is needed by some BIOSes at reboot and resume time.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3290 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-04-22 18:06:49 +00:00
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