Commit Graph
428 Commits
Author SHA1 Message Date
Jean Delvare c374f6237c Add support for the VIA VX800/VX820 SMBus. Backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5368 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-10-22 14:16:51 +00:00
Jean Delvare 20c2b6de11 Properly report bus arbitration lost.
Backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5307 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-15 21:09:38 +00:00
Jean Delvare 9a166de2c2 Dumping the register values before and after every transaction was
useful during driver development but now it's only spamming the log.
Backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5306 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-15 21:06:46 +00:00
Jean Delvare 428e71b48e Minor cleanups to the i2c-piix4 driver, backported from Linux 2.6:
* Delete unused structure.
* Delete needless forward function declaration.
* Spell it SMBus not SMB.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5305 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-07-15 21:04:22 +00:00
Jean Delvare ab3a660f22 Fix functionality flags. Backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5257 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-19 08:53:02 +00:00
Jean Delvare d9287bbef5 Add Intel ICH10 support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5231 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:48:17 +00:00
Jean Delvare 20041cbfe1 Fix an error path. If initialization fails, we want to restore the physical
bus, not delete it again. Backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5217 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-01 10:53:50 +00:00
Jean Delvare b097de4ba4 Minor cleanups in sis5595_access, backported from Linux 2.6:
* Remove commented-out code.
* Remove a legacy comment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5216 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-01 10:22:49 +00:00
Jean Delvare 135fa09cb0 Minor cleanups backported from Linux 2.6:
* Remove a needless include.
* Remove a legacy comment in piix4_access.
* Minor optimization in piix4_access.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5215 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-01 10:21:30 +00:00
Jean Delvare d636ad5775 Drop broken I2C block read support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5148 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-16 18:04:20 +00:00
Jean Delvare 551652eec1 i2c-nforce2: Declare PEC as supported. This is a backport from Linux 2.6.
Kill dead code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4953 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-14 12:35:10 +00:00
Jean Delvare f0c355da8c Add support for the Intel Tolapai to i2c-i801. This is a backport from
Linux 2.6, original patch by Jason Gaston.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4946 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-10-14 10:23:09 +00:00
Jean Delvare 82197ef51e Fix ATI SB700 SMBus support, add SB800 support (backport from Linux 2.6,
original patch by Shane Huang).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4739 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-09-01 08:19:13 +00:00
Jean Delvare 226dffd064 Whitespace cleaups (backport from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4625 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:02:42 +00:00
Jean Delvare 57e38757f1 Add ATI SB700 support to the i2c-piix4 driver. This is a backport from
a Linux 2.6 patch by Henry Su.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4624 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 21:01:35 +00:00
Jean Delvare 7e3b183eab Delete many unused defines. Backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4623 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-18 20:58:12 +00:00
Jean Delvare 8eaa3767b1 Warning fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4614 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 18:55:14 +00:00
Jean Delvare e251c94f60 Warning fix.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4612 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-07-14 16:59:50 +00:00
Jean Delvare 461e812881 i2c-nforce2: Add support for the nForce MCP61 and MCP65. This is a
backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4389 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-05-05 15:41:38 +00:00
Jean Delvare 567c1e3e3a i2c-ali1563: Fix device initialization (backported from Linux 2.6)
The i2c-ali1563 initialization looks quite broken to me:
* If the I/O space isn't enabled, we forcibly set 3 bits in
  the PCI configuration space instead of just the one enabling
  the I/O space.
* After that we pretend to check if the write worked, but we
  don't actually read the new value from the register.
* It's probably not a good idea to enable the I/O space if no
  base address has been set.

So I propose the following changes to that part of the driver:
* Merge ali1563_enable() into ali1563_setup().
* Check the base address before the I/O space enabled bit.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4324 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:42:43 +00:00
Jean Delvare 529b3a0d08 Improve the status messages printed by the i2c-ali1563 driver.
This is a backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4323 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:36:29 +00:00
Jean Delvare 4967880163 i2c-nforce2: Drop unused reference to pci_dev. (2.6 backport)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4321 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:16:08 +00:00
Jean Delvare 7946ac235d Add ATI SB600 SMBus support, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4320 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 10:05:43 +00:00
Jean Delvare 1376ab22c5 Add VIA CX700 SMBus support, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4319 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 09:56:04 +00:00
Jean Delvare 4d2fbe0740 i2c-amd8111: Cleanups and fixes backported from Linux 2.6.
* Add an explicit mask when writing the low byte of a word.
* Use I2C_SMBUS_BLOCK_MAX instead of hardcoding 32.
* Use boolean not instead of bitwise not for bit tests, it's clearer.
* Return proper error values rather than -1.
* Fix a race on device registration, initialization should be done
  before the bus is registered.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4318 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-02-15 09:34:08 +00:00
Jean Delvare ac08de0cd3 Fix typo: successful.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4278 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-01-02 18:42:54 +00:00
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