Browse Source

Consistently use "SMBus receive byte" for the short byte read we use

for chip detection. "SMBus read byte" is a different SMBus transaction.


git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6065 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v4.0
Jean Delvare 13 years ago
parent
commit
12f7cf81e9
  1. 2
      tools/i2cdetect.8
  2. 6
      tools/i2cdetect.c

2
tools/i2cdetect.8

@ -63,7 +63,7 @@ Not recommended. This is known to corrupt the Atmel AT24RF08 EEPROM
found on many IBM Thinkpad laptops.
.TP
.B "\-r"
Use SMBus "read byte" commands for probing (by default, the command
Use SMBus "receive byte" commands for probing (by default, the command
used is the one believed to be the safest for each address).
Not recommended. This is known to lock SMBus on various write-only
chips (most notably clock chips at address 0x69).

6
tools/i2cdetect.c

@ -343,7 +343,7 @@ int main(int argc, char *argv[])
exit(1);
}
if (mode == MODE_READ && !(funcs & I2C_FUNC_SMBUS_READ_BYTE)) {
fprintf(stderr, "Error: Can't use SMBus Read Byte command "
fprintf(stderr, "Error: Can't use SMBus Receive Byte command "
"on this bus\n");
close(file);
exit(1);
@ -353,7 +353,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Warning: Can't use SMBus Quick Write "
"command, will skip some addresses\n");
if (!(funcs & I2C_FUNC_SMBUS_READ_BYTE))
fprintf(stderr, "Warning: Can't use SMBus Read Byte "
fprintf(stderr, "Warning: Can't use SMBus Receive Byte "
"command, will skip some addresses\n");
}
@ -365,7 +365,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "I will probe file %s%s.\n", filename,
mode==MODE_QUICK?" using quick write commands":
mode==MODE_READ?" using read byte commands":"");
mode==MODE_READ?" using receive byte commands":"");
fprintf(stderr, "I will probe address range 0x%02x-0x%02x.\n",
first, last);

Loading…
Cancel
Save