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:
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user