On 5/9/2012 2:33 PM, Peter Meerwald wrote:
Hello,
the driver has a severe limitation: X/Y/Z must ALL be read to allow new
data to become available (the device goes into a locked state until all
are read)
Thats a limitation comming from the data sheet right?
yes, it affects all devices (hmc5843/5883/5883l)
Are you suggesting a read all and report only requested?
to work round that.
probably yes
I brought it up to see if there are ideas for a solution; maybe the issue
is more common and this should be solved at iio core level?
with individual reads for X/Y/Z there is no guarantee that all values come
from the same measurement cycle ('atomic read')
the hmc58x3 'solves' this with the lock logic and introduces another issue
maybe iio should only allow reads to all data elements at once?
If you need to do that, use buffered access rather than sysfs. Anything
else
makes for fiddly and hard to generalize interfaces I'm afraid.
It is indeed a common situation. Actually I much prefer this to the
alternative
of getting an inconsistent set depending on precise read times.
Jonathan
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html