All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] DS75
@ 2007-01-29 11:58 Alan Clucas
  2007-02-04 17:43 ` Jean Delvare
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Alan Clucas @ 2007-01-29 11:58 UTC (permalink / raw)
  To: lm-sensors

We have a DS75 on a custom board, which is attached to a Compulab iGLX 
AMD Geode based board - using the CS5536 and an unmodified scx200_acb 
driver to access the smbus/i2c.

On this board is a DS75. It doesn't identify as the chip correctly with 
the lm75 driver in 2.6.19.2 due to the fact that it seems to return the 
last value read for all of its out of spec commands, rather than doing 
the address cycling which the driver expects for command >8 - e.g. 
address 8 behaves like addresses 4 through 7. (I can provide a debug log 
showing this if needed).

With the following patch it identifies correctly and works as expected.

--- linux-2.6.19.2/drivers/hwmon/lm75.c 2007-01-24 16:03:42.000000000 +0000
+++ linux/drivers/hwmon/lm75.c  2007-01-29 11:41:45.000000000 +0000
@@ -181,13 +181,6 @@
                 /* Unused bits */
                 if (conf & 0xe0)
                         goto exit_free;
-
-               /* Addresses cycling */
-               for (i = 8; i < 0xff; i += 8)
-                       if (i2c_smbus_read_byte_data(new_client, i + 1) 
!= conf
-                        || i2c_smbus_read_word_data(new_client, i + 2) 
!= hyst
-                        || i2c_smbus_read_word_data(new_client, i + 3) 
!= os)
-                               goto exit_free;
         }

         /* Determine the chip type - only one kind supported! */

The chip has the following markings on its top:

DS75
SO6A5

Does anyone out there have a DS75 which is being identified correctly - 
the patch to change identify in this way went in quite some time ago...
http://lists.lm-sensors.org/pipermail/lm-sensors/2004-July/008335.html

Alan Clucas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alanc.vcf
Type: text/x-vcard
Size: 562 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20070129/cc670374/attachment.vcf 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-02-15 16:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-29 11:58 [lm-sensors] DS75 Alan Clucas
2007-02-04 17:43 ` Jean Delvare
2007-02-05 13:12 ` Alan Clucas
2007-02-05 17:20 ` Jean Delvare
2007-02-06 10:19 ` Alan Clucas
2007-02-06 14:45 ` Jean Delvare
2007-02-07 10:14 ` Alan Clucas
2007-02-09  9:39 ` Jean Delvare
2007-02-15 10:47 ` Jean Delvare
2007-02-15 11:01 ` Alan Clucas
2007-02-15 16:28 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.