Skip to contentSkip to conversation

ISA vs. SMBus

lm-sensors Jean Delvare 2 participants 2 messages Jan 17, 2006 – Jan 19, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

After all detections have been done, sensors-detect currently asks the user whether he/she prefers ISA access or SMBus access when both are possible. This option only makes sense for "hybrid" drivers (lm78, w83781d, it87), and only in a few cases (i.e. at least one alias has been detected by sensors-detect).

This question tends to confuse people, precisely due to the fact that it is asked unconditionally while most people simply don't need to care. Also, I see very little reason why someone would prefer not to use the ISA access, given the increased speed and reliability. Thus, I propose that we drop this question and assume "ISA" as the answer for everyone:

sensors-detect renamed from sensors-detect.orig +2 -10
@@ -5226,17 +5226,9 @@
   }
 
   print "\n\n",
-        " I will now generate the commands needed to load the I2C modules.\n",
-        " Sometimes, a chip is available both through the ISA bus and an ",
-        "I2C bus.\n",
-        " ISA bus access is faster, but you need to load an additional driver ",
-        "module\n",
-        " for it. If you have the choice, do you want to use the ISA bus or ",
-        "the\n",
-        " I2C/SMBus (ISA/smbus)? ";
-  my $use_isa = not <STDIN> =~ /\s*[Ss]/;
+        " I will now generate the commands needed to load the I2C modules.\n";
      
-  my ($modprobes,$configfile) = generate_modprobes $use_isa;
+  my ($modprobes, $configfile) = generate_modprobes 1;	# 1 = prefer ISA
   print "\nTo make the sensors modules behave correctly, add these lines to\n",
         "$modules_conf:\n\n";
   print "#----cut here----\n";

Note that I didn't discard all the now-dead code in sub generate_modprobes, just in case anyone needs to manually revert to SMBus preference. If no problem arises in the next year we may drop that additional code.

Thanks,

Signature · 1 line
Jean Delvare
#1 lore raw

Hi Jean:

Quoted 6 lines · Jean Delvare

After all detections have been done, sensors-detect currently asks the user whether he/she prefers ISA access or SMBus access when both are possible. This option only makes sense for "hybrid" drivers (lm78, w83781d, it87), and only in a few cases (i.e. at least one alias has been detected by sensors-detect).

Quoted 7 lines

This question tends to confuse people, precisely due to the fact that it is asked unconditionally while most people simply don't need to care. Also, I see very little reason why someone would prefer not to use the ISA access, given the increased speed and reliability. Thus, I propose that we drop this question and assume "ISA" as the answer for everyone:
[...]

FWIW, I agree.

Regards,

Signature · 2 lines
Mark M. Hoffman
mhoffman at lightlink.com