linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] raw read performance improvement
@ 2014-06-27  0:40 Srinivas Pandruvada
  2014-06-27  0:40 ` [RFC PATCH 1/2] iio: core: add xyz modifier value Srinivas Pandruvada
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Srinivas Pandruvada @ 2014-06-27  0:40 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, Srinivas Pandruvada

We see several performance issues reading individual axis, when
raw read is the only option. Since most of the time user space reads x, y
and z, one after other, this results in three sysfs reads, and based on
chipset we have to power up or set up measurement mode and wait for
response.
For example reading x,y and z takes 160ms for ak8975, it is true for
other too. But reading together takes only 80ms.

IIO types already defined a modifier for X_AND_Y_AND_Z, which is used
by one driver to send event code. This modifier has no value assigned
so (null) appears in sysfs. If this is not correct then we may need 
another modifier. 

Since we have now raw_read with capability to read multiple values,
we can use this callback to return values to iio core.

Srinivas Pandruvada (2):
  iio: core: add xyz modifier value
  iio: magnetometer: ak8975: Improve performance of raw reads

 drivers/iio/industrialio-core.c   |  1 +
 drivers/iio/magnetometer/ak8975.c | 58 ++++++++++++++++++++++++++-------------
 2 files changed, 40 insertions(+), 19 deletions(-)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-28 16:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27  0:40 [RFC PATCH 0/2] raw read performance improvement Srinivas Pandruvada
2014-06-27  0:40 ` [RFC PATCH 1/2] iio: core: add xyz modifier value Srinivas Pandruvada
2014-06-27  7:44   ` Daniel Baluta
2014-06-28  8:35   ` Jonathan Cameron
2014-06-27  0:40 ` [RFC PATCH 2/2] iio: magnetometer: ak8975: Improve performance of raw reads Srinivas Pandruvada
2014-06-28  8:49 ` [RFC PATCH 0/2] raw read performance improvement Jonathan Cameron
2014-06-28 13:16   ` Srinivas Pandruvada
2014-06-28 14:14     ` Jonathan Cameron
2014-06-28 16:46       ` Srinivas Pandruvada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).