Jean Delvare
2e9d43f253
Rework all device detection routines which use SMBus read word
...
transactions in address range 0x40-0x48. Some devices don't like word
transactions, so we now try to do as much of the detection as possible
using byte transactions, and only use word transactions when there is
a good chance that the detection will succeed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5248 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:16:27 +00:00
Jean Delvare
81e9cacb79
Try to detect 1-register-only devices, which are designed to be
...
accessed with SMBus receive byte and SMBus send byte transactions
(i.e. short reads and short writes) and treat SMBus read byte as a
real write followed by a read. The device detection routines would
write random values to the chip with possibly very nasty results for
the hardware. So when we detect such a chip, we skip all probing for
this address.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5247 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-11 17:14:29 +00:00
Jean Delvare
edf4152601
Fix the parsing of I2C addresses not to scan.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5244 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-09 18:01:00 +00:00
Jean Delvare
f804788da1
Don't probe I2C addresses 0x40-0x47. We only probed them for the MAX6633,
...
which is a rare chip, and hard to identify anyway. Given that some I2C chips
have been reported to live at 0x47 and to hang the bus when probed, the
benefit just isn't worth the risk.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5234 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-04 16:41:03 +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
703d08cf84
Add Intel ICH10 (bus) detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5230 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:23:31 +00:00
Jean Delvare
d77f0bb20c
Add Asus F8000 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5228 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 12:13:29 +00:00
Jean Delvare
50fcd028d0
There's nothing we can do about read errors on the W83L785TS-S, so
...
don't ask the user to report them (backported from Linux 2.6).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5220 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 10:12:30 +00:00
Jean Delvare
6be54c1d09
High-byte first is not opposite to the usual practice - that's what
...
almost all hardware monitoring drivers do. It is opposite to the SMBus
standard though. Also delete a duplicate comment.
(Backported from Linux 2.6)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5219 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 10:10:34 +00:00
Jean Delvare
3a4c2b64d8
Remove some dead code (backported from Linux 2.6).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5218 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-05-02 10:08:28 +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
918279c5e9
Add National Semiconductor LM64 detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5213 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-27 07:07:01 +00:00
Jean Delvare
52029527f8
Add SMSC SCH5127 detection. Patch from Juerg Haefliger.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5191 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-04-18 10:05:49 +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
46c0ae46d7
Don't choke on unrecognized devices, part 2. In case hwmon devices have
...
no underlying physical device, just ignore them. This happened in kernel
2.6.25-rc5-git4 with the newly added generic thermal zone device.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5147 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-16 17:30:20 +00:00
Jean Delvare
2940a23f22
New device ID for the SMSC SCH5317.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5139 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-09 19:15:34 +00:00
Jean Delvare
3495a8c225
Prepare for 2.10.6 release.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5136 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-03-06 20:21:25 +00:00
Hans de Goede
c91ff9d317
run chip_special_cases() earlier so that the special chips get added to the modules_supported list
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5132 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-26 13:52:35 +00:00
Jean Delvare
9cc993fbab
Fix W83783S support. It has been broken for over 4 years.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5130 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-24 12:45:37 +00:00
Jean Delvare
92717f150e
Move south bridge sensor detection to the right section.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5127 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-20 19:33:56 +00:00
Jean Delvare
6447132a3e
Do not access I/O ports on PPC.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5125 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-20 19:06:30 +00:00
Jean Delvare
a0a1eb9aab
w83627hf: Enable VBAT monitoring ( #2282 , 2.6 backport).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5121 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-09 10:01:12 +00:00
Jean Delvare
ca3f53c26d
lm90: Use generic i2c reads during detection (2.6 backport).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5120 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-08 19:10:35 +00:00
Jean Delvare
15d2b1d2a6
gl518sm: Fix fan speed reading (2.6 backport).
...
gl520sm: Fix fan speed reading (2.6 backport).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5119 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-08 10:34:10 +00:00
Jean Delvare
9882a42ede
Add SMSC SCH5027D detection. Patch from Juerg Haefliger.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5118 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-02-03 21:05:29 +00:00
Jean Delvare
bd3d70249c
Add Fintek F71858DG and F81216D detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5109 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-22 12:27:54 +00:00
Jean Delvare
17735732b0
Detect improperly formatted FCTEMPS value ( #2293 ).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5106 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-10 09:17:47 +00:00
Jean Delvare
8b6882e8d6
Fix lm93 vid2 access ( #2295 ). It got broken by r4745.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5105 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-10 08:10:20 +00:00
Jean Delvare
15e150b078
Fix duplicate warning message when configuration file is broken.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5104 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-09 11:04:21 +00:00
Jean Delvare
eed6e723e8
Lower the confidence value of the MAX6650/MAX6651 from 4 to 3.
...
These chips are easily misdetected.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5096 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-06 14:11:34 +00:00
Jean Delvare
2f96d70c2c
Add detection of the SMSC SCH5514 Super-IO. The chip doesn't contain
...
HW monitoring features. Patch from Juerg Haefliger.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5095 7894878c-1315-0410-8ee3-d5d059ff63e0
2008-01-05 16:57:49 +00:00
Jean Delvare
baf6c7143a
Don't choke on unrecognized devices ( #2087 ).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5086 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-27 15:35:04 +00:00
Jean Delvare
fb2c5a4dd8
Add support for the 82801AA (ICH).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5083 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-19 13:29:35 +00:00
Jean Delvare
8ddd513188
Improve sysconfig and modprobe.d integration, based on suggestions by
...
Gary Funck:
* If we create /etc/sysconfig/lm_sensors, there's no point in printing
the modprobe commands on the screen.
* Otherwise, suggest /etc/rc.d/rc.local as the init script where to put
the commands.
* If /etc/modprobe.d exists, create a file there to store the module
options, rather than printing them on the screen.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5081 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-18 13:08:34 +00:00
Jean Delvare
291fd8c00c
Return the correct error code on I2C block read failure.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5074 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-15 22:35:17 +00:00
Jean Delvare
8b094633cf
sensord: Add lm85 support.
...
The extra voltage inputs aren't supported yet, we can add them later if
anybody cares.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5068 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-10 14:06:13 +00:00
Jean Delvare
c8f47827ab
Warn about outputs found in automatic mode.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5064 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-04 10:28:14 +00:00
Jean Delvare
a093c97666
Really hide errors on sysfs writes.
...
Deal gracefully with read-only pwm_enable files.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5062 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-04 09:30:15 +00:00
Jean Delvare
3433b8d9ed
adm1026: Various cleanups.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5054 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-01 10:50:40 +00:00
Jean Delvare
f3363e1a31
sensors: Hide spurious errors on missing adm1026 inputs.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5052 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-12-01 10:41:36 +00:00
Rudolf Marek
39f5eecffb
Add Intel Celeron 4xx and Intel Core 2 CPUs on 45nm (Penryn) detection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5049 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-27 11:16:48 +00:00
Jean Delvare
1e9fef2945
Drop detection of the Philips Semiconductors PCA9540. This is an I2C
...
multiplexer, it should be handled transparently at the kernel level.
On top of that, it can't be detected reliably, and the pca9540 driver
doesn't even exist in Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5046 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-26 13:07:27 +00:00
Jean Delvare
3e46333e7c
Fix sysfs presence detection. Since sysfsutils 2.0.0, libsysfs will
...
return success even if sysfs isn't mounted. We have to check by ourselves
if it is mounted or not, so that we can fallback to procfs on Linux 2.4
systems.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5036 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-24 10:46:02 +00:00
Jean Delvare
8773c670cf
The timestamp is only 18-byte long.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5033 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-19 22:28:44 +00:00
Jean Delvare
5403bb0394
The model name is actually the first half of the asset tag.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5031 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-19 22:27:47 +00:00
Jean Delvare
ae945da77e
Private Sony Vaio data might not be readable by non-root users.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5030 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-19 22:27:26 +00:00
Jean Delvare
986d6b55a2
pwmconfig: Give the fans some time to spin up.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5024 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-18 16:13:57 +00:00
Jean Delvare
1a795661fb
pwmconfig: Better diagnostics in pwmdisable.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5022 7894878c-1315-0410-8ee3-d5d059ff63e0
2007-11-18 15:51:26 +00:00