2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

adjust scan_i2c_adapter() for FSC probe workaround

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5659 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Hans de Goede
2009-02-18 21:25:04 +00:00
parent 4ca6104c35
commit 244c34b5a7

View File

@@ -3059,11 +3059,11 @@ sub scan_i2c_adapter
print "Adapter failed to provide its functionalities, skipping.\n";
return;
}
if (!($funcs & (I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_READ_BYTE))) {
if (!($funcs & (I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_READ_BYTE | I2C_FUNC_SMBUS_READ_BYTE_DATA))) {
print "Adapter cannot be probed, skipping.\n";
return;
}
if (~$funcs & (I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_READ_BYTE)) {
if (~$funcs & (I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_READ_BYTE | I2C_FUNC_SMBUS_READ_BYTE_DATA)) {
print "Adapter doesn't support all probing functions.\n",
"Some addresses won't be probed.\n";
}