Commit Graph
20 Commits
Author SHA1 Message Date
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 aa1f43f680 Do not return negative values to i2c_detect on non-fatal errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2837 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-07 20:21:58 +00:00
Mark M. Hoffman 9b230178b9 patch by David Knierim:
> [...] I've also included a simple patch to lm93.c to
> increase the wait between retries if there is a timeout.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2835 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-01-06 22:16:37 +00:00
Mark D. Studebaker b92d85efbc fix lm93_read_block which was retrying even on success.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2788 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-07 15:32:19 +00:00
Jean Delvare 7683ac84a4 Restore controlling_mod argument to i2c_register_entry(). This
is needed to properly lock chip drivers in memory while anyone uses their
/proc entries. This also brings back compatibility with the 2.4 Linux
kernel.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2784 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-04 21:18:34 +00:00
Jean Delvare e9d2eaef30 Discard owner field from i2c_driver structure. I do not restore
inc_use/dec_use because they are not actually used anywhere.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2781 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-12-03 22:32:17 +00:00
Mark M. Hoffman 3512e8eb8e bugfix by Axel Thimm <Axel.Thimm@ATrpms.net>:
> Building (the real) 2.8.8 on RH7.3 uncovered a small C99-ism, patch
> against CVS is attached.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2746 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-26 01:17:22 +00:00
Mark M. Hoffman f583bf7d8a bugfix: typo in dynamic VID alarms
also adds a couple log messages for failed transactions
patch by David Knierim <david_knierim@earthlink.net>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2744 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-22 04:26:45 +00:00
Mark M. Hoffman c9b412f57c bugfixes:
* read dynamic VCCP error status for IN7 & IN8 (if we're in that mode)
 * unmask #VRDHOT and dynamic VCCP (if we're in that mode) error events
 * move 'start monitoring' command to the end of the inits


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2734 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-15 04:28:42 +00:00
Mark M. Hoffman 5f725e2360 bugfix: alarms no longer permanently sticky
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2722 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-11 17:37:07 +00:00
Mark M. Hoffman a16a6e40d6 Added module parameter for VID pin input thresholds.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2715 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-08 21:27:15 +00:00
Mark M. Hoffman ad686ca408 bugfixes:
* VIDs were reading 10x too big - fixed integer magnitude
 * enabling smart tach for one fan sometimes disabled it for others -
	fixed bit-twiddling during writes


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2689 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-15 13:27:45 +00:00
Mark M. Hoffman f47f0d2caf bugfix: typo which broke fan1, fan2, & fan4 alarms
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2685 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-08 16:24:41 +00:00
Mark M. Hoffman c4fde53ac5 Reordered functions to get rid of all unnecessary forward decls. This
revision should be functionally equivalent with the previous, except one small
bugfix: a typo in one of the smart tach SYSCTL numbers.  The unified diff from
this revision to the previous is nearly useless - sorry, it can't be helped.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2672 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-23 21:57:11 +00:00
Mark M. Hoffman fafcbe79d7 Added support and documentation for auto/PWM:
* temp/pwm channel bindings
 * temp channel base/offsets temperatures
 * temp channel boost/hysteresis limits
 * temp channel minimum PWM
 * temp channel hysteresis for PWM
 * pwm output spin-up minimum and spin-up duration
 * pwm output #PROCHOT and #VRDHOT ramp times

Also...
 * bugfix: #PROCHOT interval handling was broken
 * bugfix: small documentation typo re: prochotN
 * removed some TODO comments resolved by testing
 * moved h/w register #defines into separate header


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2671 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-23 20:29:15 +00:00
Mark M. Hoffman 36d420a4a6 bugfix: cut-n-paste mistake in previous fix *sigh*
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2667 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-19 19:12:16 +00:00
Mark M. Hoffman 8ad8ec2c5e bugfix: forgot to actually update/read block1 - this should fix broken
alarm and #VRDHOT readings


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2666 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-19 18:50:38 +00:00
Mark M. Hoffman 34f34e64ca Added support and documentation for:
* reading #VRDHOT inputs
 * reading GPIO pins (input only for now)
 * reading alarms status
 * #PROCHOT override control
 * #PROCHOT sampling interval control
 * Manual PWM output control
 * PWM output frequency control

Also, some whitespace cleanup in the driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2660 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-13 19:29:33 +00:00
Mark M. Hoffman e5ee8c4b03 bugfix: smart tach handling was not quite finished
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2659 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-12 22:21:25 +00:00
Mark M. Hoffman 57320d467a first draft at a driver for LM93
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2653 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-05 03:44:30 +00:00