Skip to contentSkip to conversation

lm93 support

DISCUSSION Applied David Knierim 3 participants 6 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

I was just looking around the sensors web site and noticed that the lm93 is not on the list of supported chips on the web page:

http://www2.lm-sensors.nu/~lm78/supported.html

It's only supported on kernel version 2.4, but it does work very well.

I compiled up lm_sensors 2.9.0 and i2c 2.9.1 and ran sensors-detect. The entry for the lm93 looked like this:
Probing for 'National Semiconductor LM93' ... Success!
(confidence 5, driver 'to-be-written')

Thanks once again for looking into this,
David

Applied
#1 lore raw

Hi David,

Quoted 3 lines

I've looked into this a bit more and generated a simple patch to
sensors-detect. I've also included a simple patch to lm93.c to
increase the wait between retries if there is a timeout.

I applied the sensors-detect patch. I leave the lm93.c patch to Mark Hoffman as he wrote this driver.

Thanks,

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to David Knierim

Hi David,

Quoted 6 lines

I was just looking around the sensors web site and noticed that the lm93 is not on the list of supported chips on the web page:

http://www2.lm-sensors.nu/~lm78/supported.html

It's only supported on kernel version 2.4, but it does work very well.

It is listed on the "New Drivers" page. It is indeed questionable that we have two different pages, as it makes things harder when looking for a specific chip.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#3 lore raw
In reply to David Knierim

Hi David, Jean:

Quoted 6 lines · Jean Delvare
Quoted 3 lines

I've looked into this a bit more and generated a simple patch to
sensors-detect. I've also included a simple patch to lm93.c to
increase the wait between retries if there is a timeout.

I applied the sensors-detect patch. I leave the lm93.c patch to Mark Hoffman as he wrote this driver.

I don't see any problem with that... applied, thanks.

Regards,

Signature · 2 lines
Mark M. Hoffman
[email protected]
#4 lore raw
In reply to David Knierim

Hi,
I've looked into this a bit more and generated a simple patch to
sensors-detect. I've also included a simple patch to lm93.c to
increase the wait between retries if there is a timeout.

Thank you,
David

Quoted 7 lines · David Knierim

I was just looking around the sensors web site and noticed that the lm93 is not on the list of supported chips on the web page:

http://www2.lm-sensors.nu/~lm78/supported.html

It's only supported on kernel version 2.4, but it does work very well.

Quoted 9 lines

I compiled up lm_sensors 2.9.0 and i2c 2.9.1 and ran sensors-detect. The entry for the lm93 looked like this:
Probing for 'National Semiconductor LM93' ... Success!
(confidence 5, driver 'to-be-written')

Thanks once again for looking into this,
David

-------------- next part --------------

kernel/chips/lm93.c renamed from kernel/chips/lm93.c.orig +3 -3
@@ -376,7 +376,7 @@
 		} else {
 			printk(KERN_WARNING "lm93.o: read byte data failed, "
 				"address 0x%02x.\n", reg);
-			mdelay(i);
+			mdelay(i + 3);
 		}
 
 	}
@@ -411,7 +411,7 @@
 		} else {
 			printk(KERN_WARNING "lm93.o: read word data failed, "
 				"address 0x%02x.\n", reg);
-			mdelay(i);
+			mdelay(i + 3);
 		}
 
 	}
@@ -454,7 +454,7 @@
 			printk(KERN_WARNING "lm93.o: block read data failed, "
 				"command 0x%02x.\n", 
 				lm93_block_read_cmds[fbn].cmd);
-			mdelay(1);
+			mdelay(i + 3);
 		}
 	}
 

-------------- next part --------------

prog/detect/sensors-detect renamed from prog/detect/sensors-detect.orig +1 -1
@@ -972,7 +972,7 @@
      },
      {
        name => "National Semiconductor LM93",
-       driver => "to-be-written",
+       driver => "lm93",
        i2c_addrs => [0x2c..0x2e],
        i2c_detect => sub { lm93_detect @_ },
      },
#5 lore raw
In reply to David Knierim
Quoted 6 lines · Jean Delvare

Hi David,

Quoted 3 lines

I was just looking around the sensors web site and noticed that the lm93 is not on the list of supported chips on the web page:

Quoted 9 lines
Quoted 3 lines

http://www2.lm-sensors.nu/~lm78/supported.html

It's only supported on kernel version 2.4, but it does work very well.

It is listed on the "New Drivers" page. It is indeed questionable that we have two different pages, as it makes things harder when looking for a specific chip.

Thanks. I remembered seeing it before, but then it disappeared...
Obviously, I was looking it the wrong place. Thanks for applying my patch.

David