Hi,
While testing an HIH6130 humidity and temperature sensor with I2C
interface in a BeagleBone board I've found that I was unable to read it
because the driver always returned EINVAL. With some debugging I've
found that the error was due to a test on omap_i2c_xfer_msg() in OMAP
I2C driver that invalidates zero length writes. The hwmon hih6130 driver
issues such kind of request in hih6130_update_measurements() to issue a
measurement request to the sensor.
I was able to get measurements from the sensor by hacking the hih6130
driver replacing the following line in hih6130_update_measurements();
ret = i2c_master_send(client, tmp, 0);
by
tmp[0] = 0;
ret = i2c_master_send(client, tmp, 1);
Is this the correct way to fix this issue, or should the fix be in the
I2C OMAP driver to accept zero length transfers?
Best regards,
José Gonçalves
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html